widget courrier refactor
This commit is contained in:
parent
28a2866e13
commit
30111b86f7
@ -82,7 +82,7 @@ export function Email() {
|
|||||||
// Fetch emails from all accounts in parallel
|
// Fetch emails from all accounts in parallel
|
||||||
const emailPromises = accounts.map(async (account) => {
|
const emailPromises = accounts.map(async (account) => {
|
||||||
try {
|
try {
|
||||||
const url = `/api/courrier?folder=INBOX&page=1&perPage=5&accountId=${encodeURIComponent(account.id)}${forceRefresh ? '&refresh=true' : ''}`;
|
const url = `/api/courrier?folder=INBOX&page=1&perPage=33&accountId=${encodeURIComponent(account.id)}${forceRefresh ? '&refresh=true' : ''}`;
|
||||||
const response = await fetch(url);
|
const response = await fetch(url);
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
const errorMsg = `Failed to fetch emails for ${account.email}`;
|
const errorMsg = `Failed to fetch emails for ${account.email}`;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user