Skip to content

Commit

Permalink
fix: suggested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
MehulKChaudhari committed Apr 3, 2024
1 parent 240a927 commit 3dcbb8f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/handlers/scheduledEventHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,9 @@ export async function filterOrphanTasks(env: env) {
let lastOrphanTasksFilteration: string | null = '0';
try {
lastOrphanTasksFilteration = await namespace.get('ORPHAN_TASKS_UPDATED_TIME');
if (lastOrphanTasksFilteration === null) {
console.error('Error while fetching KV "ORPHAN_TASKS_UPDATED_TIME" timestamp');
}

if (!lastOrphanTasksFilteration) {
console.error('Error while fetching KV "ORPHAN_TASKS_UPDATED_TIME" timestamp');
lastOrphanTasksFilteration = '0';
}
} catch (err) {
Expand Down

0 comments on commit 3dcbb8f

Please sign in to comment.