🔨」 fix: fixed a massive skill issue but f*ck js

This commit is contained in:
2025-10-01 20:11:27 +02:00
parent e23922d4e3
commit 544289e2af
2 changed files with 3 additions and 2 deletions

View File

@ -109,5 +109,5 @@ export default async function(fastify, options) {
}
}, async (request, reply) => { return register(request, reply, saltRounds, fastify); });
fastify.get('/logout', {}, async (request, reply) => { return logout(request, reply, fastify); })
fastify.get('/logout', {}, async (request, reply) => { return logout(reply, fastify); })
}

View File

@ -1,10 +1,11 @@
/**
* @async
* @param {import("fastify").FastifyReply} reply
* @param {import("fastify").FastifyInstance} fastify
*
* @returns {import("fastify").FastifyReply}
*/
export async function logout(reply) {
export async function logout(reply, fastify) {
try {
return reply
.code(200)