refactor: only scope update quotation status to issued
This commit is contained in:
parent
89fe216a25
commit
c29193d62c
1 changed files with 1 additions and 0 deletions
|
|
@ -10,6 +10,7 @@ const jobs = [
|
||||||
await prisma.quotation
|
await prisma.quotation
|
||||||
.updateMany({
|
.updateMany({
|
||||||
where: {
|
where: {
|
||||||
|
quotationStatus: "Issued",
|
||||||
dueDate: { lte: new Date() },
|
dueDate: { lte: new Date() },
|
||||||
},
|
},
|
||||||
data: { quotationStatus: "Expired" },
|
data: { quotationStatus: "Expired" },
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue