fixing
This commit is contained in:
@ -180,7 +180,7 @@ export class UsageInstructionsController {
|
|||||||
|
|
||||||
const data = new UsageInstructions()
|
const data = new UsageInstructions()
|
||||||
data.usage_instructions_name = param.usage_instructions_name
|
data.usage_instructions_name = param.usage_instructions_name
|
||||||
data.usage_abbreviation = param.usage_instructions_abbreviation
|
data.usage_instructions_abbreviation = param.usage_instructions_abbreviation
|
||||||
data.created_by = req.auth.data.name;
|
data.created_by = req.auth.data.name;
|
||||||
|
|
||||||
await OrmHelper.DB.manager.save(data);
|
await OrmHelper.DB.manager.save(data);
|
||||||
@ -236,7 +236,7 @@ export class UsageInstructionsController {
|
|||||||
|
|
||||||
if (data != null) {
|
if (data != null) {
|
||||||
data.usage_instructions_name = param.usage_instructions_name
|
data.usage_instructions_name = param.usage_instructions_name
|
||||||
data.usage_abbreviation = param.usage_instructions_abbreviation
|
data.usage_instructions_abbreviation = param.usage_instructions_abbreviation
|
||||||
data.updated_by = req.auth.data.name;
|
data.updated_by = req.auth.data.name;
|
||||||
|
|
||||||
await repo.save(data);
|
await repo.save(data);
|
||||||
|
|||||||
Reference in New Issue
Block a user