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