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:
Tom Butcher 2026-07-26 19:40:11 +01:00
parent 6f59f75b41
commit 02a05231d1

View File

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