fix(check-username): return boolean instead of user object

This commit is contained in:
Aminejvm 2021-06-10 08:18:18 +01:00
parent 1a8aba4596
commit acb5b5b507

View File

@ -16,5 +16,5 @@ export default async (req, res) => {
return res.status(500).send({ decorator: "SERVER_USER_NOT_FOUND", error: true });
}
return res.status(200).send({ decorator: "SERVER_CHECK_USERNAME", data: user });
return res.status(200).send({ decorator: "SERVER_CHECK_USERNAME", data: true });
};