mirror of
https://github.com/KeyZox71/knl_meowscendence.git
synced 2025-12-31 21:56:41 +01:00
added tetris game management
This commit is contained in:
@ -3,7 +3,8 @@ export async function dUser(request, reply, fastify, getUserInfo, deleteMatchHis
|
||||
if (!getUserInfo.get(request.params.userId)) {
|
||||
return reply.code(404).send({ error: "User does not exist" });
|
||||
}
|
||||
deleteMatchHistory.run(request.params.userId);
|
||||
deleteMatchHistory.run('pong', request.params.userId);
|
||||
deleteMatchHistory.run('tetris', request.params.userId);
|
||||
deleteFriends.run(request.params.userId);
|
||||
deleteUser.run(request.params.userId);
|
||||
return reply.code(200).send({ msg: "User deleted successfully" });
|
||||
|
||||
Reference in New Issue
Block a user