Skip to content

Commit

Permalink
change error
Browse files Browse the repository at this point in the history
  • Loading branch information
maxwn04 committed Oct 13, 2024
1 parent 893feb1 commit dc4b8cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions services/UserAccountService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,10 @@ export default class UserAccountService {
|| user.resumes.length < 1
|| user.profilePicture == null
|| user.bio == null) {
throw new UserError('Onboarding tasks not completed');
throw new BadRequestError('Onboarding tasks not completed');
}
if (user.onboardingCollected) {
throw new UserError('Onboarding reward already collected');
throw new BadRequestError('Onboarding reward already collected');
}
return this.transactions.readWrite(async (txn) => {
const userRepository = Repositories.user(txn);
Expand Down

0 comments on commit dc4b8cf

Please sign in to comment.