Check deletedAt.

This commit is contained in:
Brian Cao 2023-02-23 16:58:05 -08:00
parent 7d3334ccce
commit d63b1e3502
4 changed files with 47 additions and 52 deletions

View file

@ -36,7 +36,7 @@ export default async (
const { username, password, id } = req.body;
const existingUser = await getUser({ username });
const existingUser = await getUser({ username }, { showDeleted: true });
if (existingUser) {
return badRequest(res, 'User already exists');