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,8 +26,12 @@ export class GradesRepository {
|
|||||||
},
|
},
|
||||||
update: {
|
update: {
|
||||||
grade,
|
grade,
|
||||||
shots: {
|
card: {
|
||||||
increment: 1,
|
update: {
|
||||||
|
shots: {
|
||||||
|
increment: 1,
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
create: {
|
create: {
|
||||||
@@ -41,6 +45,7 @@ export class GradesRepository {
|
|||||||
card: {
|
card: {
|
||||||
connect: {
|
connect: {
|
||||||
id: cardId,
|
id: cardId,
|
||||||
|
shots: 1,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
deck: {
|
deck: {
|
||||||
|
|||||||
Reference in New Issue
Block a user