email list sync button uses new email-sync handler, job duration logging
Rewired EmailList sync button to call /email/accounts/:id/sync instead of the old gmail-sync job. Shows sync button for connected and synced accounts. Allow manual incremental sync for synced accounts. Added duration logging to queue runner: start/complete/fail markers with elapsed time. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -135,7 +135,6 @@ accountsRouter.post('/:id/sync', async (ctx) => {
|
||||
|
||||
if (account.status === 'queued') throw BAD_REQUEST('Sync is already queued');
|
||||
if (account.status === 'syncing') throw BAD_REQUEST('Account is already syncing');
|
||||
if (account.status === 'synced') throw BAD_REQUEST('Account is already synced — incremental syncs run automatically');
|
||||
|
||||
// Resolve auth before enqueueing
|
||||
const authResult = await resolveAuth(user.id, account.authType, account.email, account.credentials as Record<string, unknown>);
|
||||
|
||||
Reference in New Issue
Block a user