From 5cf5e079fb41c76a1e47f49c185db4a825e71137 Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Fri, 10 Jan 2025 10:18:57 +0700 Subject: [PATCH] fix: wrong model error message thrown --- src/controllers/05-quotation-controller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/05-quotation-controller.ts b/src/controllers/05-quotation-controller.ts index 4df4293..7da7cb4 100644 --- a/src/controllers/05-quotation-controller.ts +++ b/src/controllers/05-quotation-controller.ts @@ -1045,7 +1045,7 @@ export class QuotationFileController extends Controller { }, where: { id }, }); - if (!data) throw notFoundError("Payment"); + if (!data) throw notFoundError("Quotation"); await permissionCheck(user, data.registeredBranch); }