Skip to content

Commit

Permalink
fix: ts error
Browse files Browse the repository at this point in the history
  • Loading branch information
malmen237 committed Sep 5, 2024
1 parent 77a50d1 commit cfb000c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/api/manager/job/syncInventory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ export async function runSyncInventory() {
) => {
const databaseStatus = inventorySource.status;
const apiStatus = apiSource.status;
let currentTime = new Date().getTime();
let createdAtTime = new Date(inventorySource.createdAt).getTime();
let monthInMilliseconds = 30 * 24 * 60 * 60 * 1000;
let expiryTime = createdAtTime + monthInMilliseconds;
const currentTime = new Date().getTime();
const createdAtTime = new Date(inventorySource.createdAt).getTime();
const monthInMilliseconds = 30 * 24 * 60 * 60 * 1000;
const expiryTime = createdAtTime + monthInMilliseconds;

if (databaseStatus === 'purge' && apiStatus === 'gone') {
return databaseStatus;
Expand Down

0 comments on commit cfb000c

Please sign in to comment.