From 9a46e935d9eb31f86fd352c7d14139c72569a8aa Mon Sep 17 00:00:00 2001 From: Hongbo Wu Date: Fri, 3 Mar 2023 08:35:11 +0800 Subject: [PATCH] Add [] to the labels in csv --- packages/api/src/routers/svc/integrations.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/api/src/routers/svc/integrations.ts b/packages/api/src/routers/svc/integrations.ts index 2cd89229d..ec6d20bef 100644 --- a/packages/api/src/routers/svc/integrations.ts +++ b/packages/api/src/routers/svc/integrations.ts @@ -238,7 +238,7 @@ export function integrationsServiceRouter() { // write the list of urls, state and labels to the stream const csvData = retrievedData.map((page) => { const { url, state, labels } = page - return [url, state, labels?.join(',')].join(',') + return [url, state, `[${labels?.join(',') || ''}]`].join(',') }) writeStream.write(csvData.join('\n'))