Skip to content

Commit 091c453

Browse files
committed
api: Replce executeRaw with update
1 parent 447be99 commit 091c453

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

packages/api/scripts/create-issues-from-subscriptions.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,9 @@ await prismaDm.$executeRaw`
103103
AND least(current_date, subscription.Date_fin)
104104
AND Numeros_ajoutes = 0
105105
`;
106-
await prismaDm.$executeRaw`UPDATE abonnements_sorties SET Numeros_ajoutes=1`;
107106

108-
await prismaDm.$disconnect();
107+
await prismaDm.subscriptionRelease.updateMany({
108+
data: {
109+
haveIssuesBeenAdded: true,
110+
},
111+
});

0 commit comments

Comments
 (0)