update
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user