mirror of
https://github.com/ershisan99/flashcards-api.git
synced 2025-12-17 12:33:22 +00:00
fix shots
This commit is contained in:
@@ -26,10 +26,14 @@ export class GradesRepository {
|
||||
},
|
||||
update: {
|
||||
grade,
|
||||
card: {
|
||||
update: {
|
||||
shots: {
|
||||
increment: 1,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
create: {
|
||||
grade,
|
||||
shots: 1,
|
||||
@@ -41,6 +45,7 @@ export class GradesRepository {
|
||||
card: {
|
||||
connect: {
|
||||
id: cardId,
|
||||
shots: 1,
|
||||
},
|
||||
},
|
||||
deck: {
|
||||
|
||||
Reference in New Issue
Block a user