diff --git a/app/api/courrier/debug-account/route.ts b/app/api/courrier/debug-account/route.ts index fc48fd43..cace1f67 100644 --- a/app/api/courrier/debug-account/route.ts +++ b/app/api/courrier/debug-account/route.ts @@ -37,7 +37,7 @@ export async function GET() { // Check Redis cache for credentials try { - const credentials = await getCachedEmailCredentials(userId); + const credentials = await getCachedEmailCredentials(userId, 'default'); if (credentials) { debugData.redis.emailCredentials = { found: true, @@ -144,7 +144,7 @@ export async function GET() { debugData.imap.connectionAttempt = true; // Use cached credentials - const credentials = await getCachedEmailCredentials(userId); + const credentials = await getCachedEmailCredentials(userId, 'default'); if (credentials && credentials.email && credentials.password) { const client = new ImapFlow({ diff --git a/lib/imap.ts b/lib/imap.ts index 0c7c57f0..a8e21d7d 100644 --- a/lib/imap.ts +++ b/lib/imap.ts @@ -11,7 +11,7 @@ export async function getImapClient() { } // First try to get credentials from Redis cache - let credentials = await getCachedEmailCredentials(session.user.id); + let credentials = await getCachedEmailCredentials(session.user.id, 'default'); // If not in cache, get from database if (!credentials) {