build fix

This commit is contained in:
alma 2025-05-05 14:12:30 +02:00
parent 15957953df
commit 9a7bc49f48
2 changed files with 3 additions and 3 deletions

View File

@ -37,7 +37,7 @@ export async function GET() {
// Check Redis cache for credentials // Check Redis cache for credentials
try { try {
const credentials = await getCachedEmailCredentials(userId); const credentials = await getCachedEmailCredentials(userId, 'default');
if (credentials) { if (credentials) {
debugData.redis.emailCredentials = { debugData.redis.emailCredentials = {
found: true, found: true,
@ -144,7 +144,7 @@ export async function GET() {
debugData.imap.connectionAttempt = true; debugData.imap.connectionAttempt = true;
// Use cached credentials // Use cached credentials
const credentials = await getCachedEmailCredentials(userId); const credentials = await getCachedEmailCredentials(userId, 'default');
if (credentials && credentials.email && credentials.password) { if (credentials && credentials.email && credentials.password) {
const client = new ImapFlow({ const client = new ImapFlow({

View File

@ -11,7 +11,7 @@ export async function getImapClient() {
} }
// First try to get credentials from Redis cache // 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 not in cache, get from database
if (!credentials) { if (!credentials) {