From 7f934454a9bba85ee1c644eafc0ae99c5e2b077a Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Wed, 3 Apr 2024 16:26:39 +0700 Subject: [PATCH] chore: change devMessage on error --- src/controllers/branch/branch-controller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/branch/branch-controller.ts b/src/controllers/branch/branch-controller.ts index 3dac955..1bdd334 100644 --- a/src/controllers/branch/branch-controller.ts +++ b/src/controllers/branch/branch-controller.ts @@ -259,7 +259,7 @@ export class BranchController extends Controller { } if (record.status === Status.USED) { - throw new HttpError(HttpStatus.FORBIDDEN, "Branch is in used.", "data_exists"); + throw new HttpError(HttpStatus.FORBIDDEN, "Branch is in used.", "data_in_used"); } return await prisma.branch.delete({