Skip to content

Commit

Permalink
Merge pull request #222 from YujithIsura/master
Browse files Browse the repository at this point in the history
This fixes  #219
  • Loading branch information
YujithIsura authored Feb 26, 2020
2 parents f1828b9 + a88d6b3 commit 1a346b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/src/service/moduleService.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,11 +181,11 @@ const ApproveElectionTemplateByModuleId = async (req) => {
if (templateUsage[0].COUNT===0) {
return await ModuleRepo.updateTemplateStatus( electionData );
} else {
throw new ValidationError("This election template already in use",HTTP_CODE_400);
throw new ApiError("This election template already in use",HTTP_CODE_400);
}
}catch (error){
console.log(error);
throw new ValidationError(e.message,HTTP_CODE_400);
throw new ApiError(error.message,HTTP_CODE_400);
}
};

Expand Down

0 comments on commit 1a346b5

Please sign in to comment.