Skip to content

Commit 1cb0772

Browse files
committed
Remove another todo
1 parent 994cd1e commit 1cb0772

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

template/app/src/demo-ai-app/operations.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,6 @@ export const generateGptResponse: GenerateGptResponse<GenerateGptResponseInput,
6464

6565
// NOTE: I changed this up, first I do the request, and then I decrement
6666
// credits. Is that dangerous? Protecting from it could be too complicated
67-
// TODO: Potential issue here, user can lose credits between the point we
68-
// inject it into the context and here
69-
// Seems to me that there should be users in the database with negative credits
7067
const decrementCredit = context.entities.User.update({
7168
where: { id: context.user.id },
7269
data: {

0 commit comments

Comments
 (0)