style: clean up code formatting and remove trailing whitespace

refactor: reorganize imports and fix type imports
This commit is contained in:
Evandro Fonseca Junior committed 2025-11-11 03:08:36 -03:00
1 parent d3704602fd
commit 47c04de6fe
232 files changed
+7140 -4798

No files matched your search

+7 -3
View File
@@ -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;
}
}