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
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({

View File

@ -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) {