Skip to content

Commit

Permalink
fix: add missing log
Browse files Browse the repository at this point in the history
  • Loading branch information
szymonrybczak committed Jan 9, 2025
1 parent c79e9e2 commit 2e8d5ba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/setup/backgroundTask/index.native.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import TaskManager from '@expensify/react-native-background-task';
import Log from '@libs/Log';
import * as SequentialQueue from '@libs/Network/SequentialQueue';

const BACKGROUND_FETCH_TASK = 'FLUSH-SEQUENTIAL-QUEUE-BACKGROUND-FETCH';

TaskManager.defineTask(BACKGROUND_FETCH_TASK, () => {
Log.info('BackgroundTask', true, `Executing ${BACKGROUND_FETCH_TASK} background task at ${new Date().toISOString()}`);
SequentialQueue.flush();
});

0 comments on commit 2e8d5ba

Please sign in to comment.