chore: change devMessage on error

This commit is contained in:
Methapon2001 2024-04-03 16:26:39 +07:00
parent 3814dca548
commit 7f934454a9

View file

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