mirror of
https://github.com/KeyZox71/knl_meowscendence.git
synced 2026-01-01 06:06:41 +01:00
fixed single-player tetris games
This commit is contained in:
@ -1,6 +1,10 @@
|
||||
export async function dAvatar(request, reply, fastify, deleteAvatarId) {
|
||||
export async function dAvatar(request, reply, fastify, getUserInfo, deleteAvatarId) {
|
||||
try {
|
||||
;
|
||||
const userId = request.params.userId;
|
||||
if (!getUserInfo.get(userId)) {
|
||||
return reply.cose(404).send({ error: "User does not exist" });
|
||||
}
|
||||
deleteAvatarId.run(userId);
|
||||
return reply.code(200).send({ msg: "Avatar deleted successfully" });
|
||||
} catch (err) {
|
||||
fastify.log.error(err);
|
||||
|
||||
Reference in New Issue
Block a user