keep job creation date as text for compatibility
This commit is contained in:
parent
882b4db228
commit
f3fa0a1944
3 changed files with 3 additions and 3 deletions
|
|
@ -69,7 +69,7 @@ const clearJobs = async () => {
|
|||
const jobs = await prisma.job.findMany({
|
||||
where: {
|
||||
dateCreated: {
|
||||
lt: new Date(Date.now() - AUTO_DELETE_EVERY_N_HOURS * 60 * 60 * 1000),
|
||||
lt: new Date(Date.now() - AUTO_DELETE_EVERY_N_HOURS * 60 * 60 * 1000).toISOString(),
|
||||
},
|
||||
},
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue