This commit is contained in:
avicenan
2026-04-17 16:16:38 +07:00

View File

@ -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;