Skip to content

Commit

Permalink
update script that is actually running
Browse files Browse the repository at this point in the history
  • Loading branch information
AvidDabbler committed Feb 5, 2024
1 parent b9ef061 commit c63c05f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 3 additions & 3 deletions app/entry.server.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,6 @@ function handleBrowserRequest(
});
}

cron.schedule('* * * * *', async () => {
await backupS3Object(envConfig.S3_BUCKET, 'data.db', 'drizzle/data.db')
})
cron.schedule('* * * * *', () => {
backupS3Object(envConfig.S3_BUCKET, 'drizzle/data.db', 'data.db')
})
3 changes: 0 additions & 3 deletions drizzle/backup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,3 @@ export async function backupS3Object(bucket: string, filePath: string, destinati
}
}

cron.schedule('* * * * *', () => {
backupS3Object(envConfig.S3_BUCKET, './drizzle/data.db', 'data.db')
})

0 comments on commit c63c05f

Please sign in to comment.