style: clean up code formatting and remove trailing whitespace
refactor: reorganize imports and fix type imports
This commit is contained in:
1 parent
d3704602fd
commit
47c04de6fe
232 files changed
+7140
-4798
No files matched your search
@@ -31,7 +31,10 @@ export interface SessionData {
|
||||
/**
|
||||
* Cria ou atualiza uma sessão
|
||||
*/
|
||||
export async function setSession(sessionId: string, data: SessionData): Promise<void> {
|
||||
export async function setSession(
|
||||
sessionId: string,
|
||||
data: SessionData,
|
||||
): Promise<void> {
|
||||
try {
|
||||
const client = getRedisClient();
|
||||
if (!client.isOpen) {
|
||||
@@ -54,7 +57,9 @@ export async function setSession(sessionId: string, data: SessionData): Promise<
|
||||
/**
|
||||
* Obtém dados de uma sessão
|
||||
*/
|
||||
export async function getSession(sessionId: string): Promise<SessionData | null> {
|
||||
export async function getSession(
|
||||
sessionId: string,
|
||||
): Promise<SessionData | null> {
|
||||
try {
|
||||
const client = getRedisClient();
|
||||
if (!client.isOpen) {
|
||||
@@ -146,4 +151,3 @@ export async function refreshSession(sessionId: string): Promise<void> {
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user