Skip to content

Commit ff128dd

Browse files
committed
return after clear
1 parent 8495843 commit ff128dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/routes/clearSession.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ const clearSessionPlugin: FastifyPluginAsync = async (fastify, _options) => {
2323
onRequest: fastify.authorizeFromSchema,
2424
},
2525
async (request, reply) => {
26-
reply.status(201).send();
2726
const username = [request.username!];
2827
const { redisClient } = fastify;
2928
const { log: logger } = fastify;
@@ -46,6 +45,7 @@ const clearSessionPlugin: FastifyPluginAsync = async (fastify, _options) => {
4645
expiresIn,
4746
});
4847
}
48+
return reply.status(201).send();
4949
},
5050
);
5151
};

0 commit comments

Comments
 (0)