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;