Skip to content

Commit

Permalink
fix: remove code for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
fruneen committed Mar 27, 2024
1 parent 9e5f19e commit b0fc679
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const formatError = (customError: CustomErrors): ValidationErrors => {
return errors;
};

const attachCustomErrors = async (ctx: AppKoaContext<{ db: number }>, next: Next) => {
const attachCustomErrors = async (ctx: AppKoaContext, next: Next) => {
ctx.throwError = (message, status = 400) => ctx.throw(status, { message });
ctx.assertError = (condition, message, status = 400) => ctx.assert(condition, status, { message });

Expand Down

0 comments on commit b0fc679

Please sign in to comment.