🚧 back: wip delete user wrong call

This commit is contained in:
Eric Doughty-Papassideris
2025-03-05 14:50:06 +01:00
committed by Anton Shepilov
parent 658e8de6d4
commit 9d35fbe0d7
@@ -27,7 +27,7 @@ function getUserIfValidQuery(request: FastifyRequest, reply: FastifyReply) {
const routes: FastifyPluginCallback = async (fastify: FastifyInstance, _opts, next) => {
const config = getConfig();
const controller = await AdminDeleteUserController.create();
const controller = new AdminDeleteUserController();
if (config?.endpointSecret?.length) {
fastify.post("/user/delete", async (request, reply) => {
const userId = getUserIfValidQuery(request, reply);