diff --git a/tdrive/backend/node/src/core/platform/services/admin/web/delete-user-routes.ts b/tdrive/backend/node/src/core/platform/services/admin/web/delete-user-routes.ts index 047b5e4f..5dd7180a 100644 --- a/tdrive/backend/node/src/core/platform/services/admin/web/delete-user-routes.ts +++ b/tdrive/backend/node/src/core/platform/services/admin/web/delete-user-routes.ts @@ -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);