Skip to content

Commit f23d5f8

Browse files
committed
Answering one guide correctly gives 1 point
1 parent 4394148 commit f23d5f8

File tree

1 file changed

+4
-4
lines changed
  • apps/nextjs/app/api/check-crossword

1 file changed

+4
-4
lines changed

apps/nextjs/app/api/check-crossword/route.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export async function POST(req: NextRequest) {
6868
cannotSubmit:
6969
'Estás es un periodo de espera de 24 horas desde tu último envío para este curso. No puedes enviar resultado para beca en este momento.',
7070
contractError: 'No se pudo conectar con el contrato de becas.',
71-
correctPoint: '¡Respuesta correcta! +1 punto. ',
71+
correctPoint: '¡Respuesta correcta! 1 punto. ',
7272
correct:
7373
'Se ha enviado tu resultado para beca, por favor espera 24 horas antes de volver a enviar para este curso.',
7474
incorrect:
@@ -92,7 +92,7 @@ export async function POST(req: NextRequest) {
9292
contractError: 'Could not connect to scholarship contract.',
9393
correct:
9494
'Your result has been submitted for scholarship, please waith 24 hours before submitting again answers for this course.',
95-
correctPoint: 'Correct answer! +1 point. ',
95+
correctPoint: 'Correct answer! 1 point. ',
9696
incorrect:
9797
"\nWrong answer. Your result has been submitted for scholarship, please waith 24 hourse before submitting again answers for this course.",
9898
noWallet: 'Your answer will not be graded nor will possible scholarships be sought.',
@@ -228,11 +228,11 @@ export async function POST(req: NextRequest) {
228228
console.log(' After insert igp.points=', igp.points)
229229
} else {
230230
await db.updateTable('guide_usuario')
231-
.set({ points: ug[0].points + 1 })
231+
.set({ points: 1 })
232232
.where('usuario_id', '=', billeteraUsuario.usuario_id)
233233
.where('actividadpf_id', '=', actividadpfId)
234234
.execute();
235-
console.log(' After update points=', ug[0].points + 1 )
235+
console.log(' After update points=1')
236236
}
237237
retMessage += msg[locale].correctPoint
238238
}

0 commit comments

Comments
 (0)