build fix
This commit is contained in:
parent
15957953df
commit
9a7bc49f48
@ -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({
|
||||
|
||||
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user