fix: wrong model error message thrown

This commit is contained in:
Methapon2001 2025-01-10 10:18:57 +07:00
parent 1cf861d492
commit 5cf5e079fb

View file

@ -1045,7 +1045,7 @@ export class QuotationFileController extends Controller {
}, },
where: { id }, where: { id },
}); });
if (!data) throw notFoundError("Payment"); if (!data) throw notFoundError("Quotation");
await permissionCheck(user, data.registeredBranch); await permissionCheck(user, data.registeredBranch);
} }