Check deletedAt. (#1796)

This commit is contained in:
Brian Cao authored and GitHub committed 2023-02-27 16:01:34 -08:00
1 parent 5657a64c77
commit 84430e38eb
4 files changed
+47 -52

No files matched your search

+1 -1
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');