mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-14 16:44:07 -08:00
⚡ Stringify tag IDs in GET /workflows
This commit is contained in:
parent
47cc2b41af
commit
9ec9ff9f71
|
@ -559,6 +559,11 @@ class App {
|
||||||
}
|
}
|
||||||
|
|
||||||
const results = await Db.collections.Workflow!.find(findQuery);
|
const results = await Db.collections.Workflow!.find(findQuery);
|
||||||
|
results.forEach(workflow => {
|
||||||
|
if (workflow.tags) {
|
||||||
|
workflow.tags = workflow.tags.map(({ id, name }) => ({ id: id.toString(), name }));
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
for (const entry of results) {
|
for (const entry of results) {
|
||||||
(entry as unknown as IWorkflowShortResponse).id = entry.id.toString();
|
(entry as unknown as IWorkflowShortResponse).id = entry.id.toString();
|
||||||
|
|
Loading…
Reference in a new issue