mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-14 16:44:07 -08:00
⚡ Stringify tag IDs in PATCH /workflows/:id
This commit is contained in:
parent
14368ccc63
commit
b7804c0a77
|
@ -674,10 +674,11 @@ class App {
|
||||||
|
|
||||||
await TagHelpers.createRelations(id, tagIds);
|
await TagHelpers.createRelations(id, tagIds);
|
||||||
|
|
||||||
responseData.tags = await Db.collections.Tag!.find({
|
const foundTags = await Db.collections.Tag!.find({
|
||||||
select: ['id', 'name'],
|
select: ['id', 'name'],
|
||||||
where: { id: In(tagIds) },
|
where: { id: In(tagIds) },
|
||||||
});
|
});
|
||||||
|
responseData.tags = foundTags.map(({ id, name }) => ({ id: id.toString(), name }));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue