courrier multi account restore compose
This commit is contained in:
parent
8b1a160c21
commit
6bdc3bba5a
@ -110,9 +110,9 @@ export const useCourrier = () => {
|
|||||||
// Try to get cached emails first
|
// Try to get cached emails first
|
||||||
const currentRequestPage = page;
|
const currentRequestPage = page;
|
||||||
|
|
||||||
// CRITICAL FIX: Use the correct parameter order
|
// FIXED: Use the correct parameter order for getCachedEmailsWithTimeout
|
||||||
// Signature is: (userId: string, folder: string, page: number, perPage: number, timeoutMs: number = 100, accountId?: string)
|
// Function signature: (userId: string, folder: string, page: number, perPage: number, timeoutMs: number = 100, accountId?: string)
|
||||||
console.log(`Getting cached emails for ${currentFolder} with accountId ${accountId || 'default'}`);
|
console.log(`Getting cached emails for user ${session.user.id}, folder ${currentFolder}, page ${currentRequestPage}, accountId ${accountId || 'default'}`);
|
||||||
const cachedEmails = await getCachedEmailsWithTimeout(
|
const cachedEmails = await getCachedEmailsWithTimeout(
|
||||||
session.user.id, // userId: string
|
session.user.id, // userId: string
|
||||||
currentFolder, // folder: string
|
currentFolder, // folder: string
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user