fix: error message

This commit is contained in:
David Nguyen
2024-06-10 20:54:29 +10:00
parent 6bb86944f7
commit 5a76a601d5
2 changed files with 2 additions and 6 deletions

View File

@ -57,11 +57,7 @@ export const updatePublicProfile = async ({ userId, data }: UpdatePublicProfileO
});
if (isUrlTakenByAnotherUser || isUrlTakenByAnotherTeam) {
throw new AppError(
AppErrorCode.PROFILE_URL_TAKEN,
'Profile username is taken',
'The profile username is already taken',
);
throw new AppError(AppErrorCode.PROFILE_URL_TAKEN, 'The profile username is already taken');
}
}