diff --git a/backend/src/index.ts b/backend/src/index.ts index a98b858282000dd65d2bfbd8554792b4e49bd773..24c38ae960fdf0b1533907d91732eef7bcdafb66 100644 --- a/backend/src/index.ts +++ b/backend/src/index.ts @@ -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, });