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({