refactor: only scope update quotation status to issued

This commit is contained in:
Methapon Metanipat 2024-11-07 14:01:22 +07:00
parent 89fe216a25
commit c29193d62c

View file

@ -10,6 +10,7 @@ const jobs = [
await prisma.quotation
.updateMany({
where: {
quotationStatus: "Issued",
dueDate: { lte: new Date() },
},
data: { quotationStatus: "Expired" },