🚧 back: wip delete user wrong call
This commit is contained in:
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);
|
||||
|
||||
Reference in New Issue
Block a user