Refactored intl messages.

This commit is contained in:
Mike Cao 2023-01-25 07:42:46 -08:00
parent fbccf4d3af
commit 7725b5c129
44 changed files with 558 additions and 485 deletions

View file

@ -76,7 +76,7 @@ export default async (
}
if (id === userId) {
return badRequest(res, 'You cannot delete your own user.');
return badRequest(res, 'You cannot delete yourself.');
}
await deleteUser(id);

View file

@ -26,9 +26,10 @@ export default async (
const {
user: { id: userId },
} = req.auth;
const { id } = req.query;
if (req.method === 'GET') {
const websites = await getUserWebsites(userId);
const websites = await getUserWebsites(id as string);
return ok(res, websites);
}