Added support for tags in new host creation by including tags from the request body in the host object. This enhancement improves the data structure for host management.
This commit is contained in:
parent
6f59f75b41
commit
02a05231d1
@ -142,6 +142,7 @@ export const newHostRouteHandler = async (req, res) => {
|
|||||||
updatedAt: new Date(),
|
updatedAt: new Date(),
|
||||||
name: req.body.name,
|
name: req.body.name,
|
||||||
active: req.body.active,
|
active: req.body.active,
|
||||||
|
tags: req.body.tags,
|
||||||
};
|
};
|
||||||
const result = await newObject({
|
const result = await newObject({
|
||||||
model: hostModel,
|
model: hostModel,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user