Skip to content

Commit 73386bd

Browse files
committed
chore: exclude CREATE request type when deleting them
1 parent 8f0eafb commit 73386bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

data-migrations/migrations/20240909185417-delete_dangling_public_cloud_requests.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ export const up = async (db, client) => {
22
const publicRequests = await db
33
.collection('PublicCloudRequest')
44
.find(
5-
{},
5+
{ type: { $ne: 'CREATE' } },
66
{
77
projection: { licencePlate: 1 },
88
sort: { createdAt: 1 },

0 commit comments

Comments
 (0)