Skip to content
Snippets Groups Projects
Commit 067141dc authored by Paolo.Brasolin's avatar Paolo.Brasolin
Browse files

feat: record minimal transcription data

parent 1b1ac1c8
No related branches found
No related tags found
No related merge requests found
......@@ -85,7 +85,13 @@ server.route<{ Body: FromSchema<typeof CheckTranscriptionBodySchema> }>({
},
},
},
handler: function (request, reply) {
handler: async function (request, reply) {
// TODO: actually check the word
await connection.table("game_results").insert({
id_image: request.body.refData.id,
transcription: request.body.transcription,
gametime: request.body.deltaTime,
});
reply.send({
hitTheTarget: true,
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment