From 66da086e51bbc343384d76ee6d9c1c0fb6ae822a Mon Sep 17 00:00:00 2001 From: "fazri.is" Date: Fri, 17 Apr 2026 15:35:24 +0700 Subject: [PATCH] update --- src/controllers/currency.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/currency.ts b/src/controllers/currency.ts index f5f06a6..620a5e7 100644 --- a/src/controllers/currency.ts +++ b/src/controllers/currency.ts @@ -214,7 +214,7 @@ export class CurrencyController { let param: any = await schema.validateAsync(req.body); - let currency: Currency = await CurrencyModel.list({ id: param.currency_id }).then((q) => q.getOne()); + let currency: Currency = await CurrencyModel.list({ id: param.id }).then((q) => q.getOne()); if (!currency) throw { message: "Currnecy " + Language.lang.failed_not_found }; currency.name = param.name;