Skip to content

Commit 898c829

Browse files
authored
Merge pull request #5345 from bcgov/fix/5337
fix(5337): delete only pending billings for the current project
2 parents 3da7224 + fa1785f commit 898c829

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/services/db/public-cloud-billing.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ export async function upsertPublicCloudBillings({
255255
}
256256

257257
await Promise.all([
258-
prisma.publicCloudBilling.deleteMany({ where: { OR: [{ signed: false }, { approved: false }] } }),
258+
prisma.publicCloudBilling.deleteMany({ where: { licencePlate, OR: [{ signed: false }, { approved: false }] } }),
259259
prisma.task.deleteMany({
260260
where: {
261261
type: { in: [TaskType.SIGN_PUBLIC_CLOUD_MOU, TaskType.REVIEW_PUBLIC_CLOUD_MOU] },

0 commit comments

Comments
 (0)