remove comments
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
11cf1ba414
commit
37292cee89
|
@ -51,12 +51,8 @@ module.exports = Self => {
|
||||||
|
|
||||||
const item = await models.Item.create(params, myOptions);
|
const item = await models.Item.create(params, myOptions);
|
||||||
|
|
||||||
// set the item.isLaid to be the same as itemType.isLaid (itemType comes from item.typeFk)
|
|
||||||
|
|
||||||
const itemType = await models.ItemType.findById(item.typeFk, myOptions);
|
const itemType = await models.ItemType.findById(item.typeFk, myOptions);
|
||||||
|
|
||||||
// Update the item with the new isLaid value
|
|
||||||
|
|
||||||
item.isLaid = itemType.isLaid;
|
item.isLaid = itemType.isLaid;
|
||||||
|
|
||||||
await item.save(myOptions);
|
await item.save(myOptions);
|
||||||
|
|
Loading…
Reference in New Issue