From 5e42eae092bd91a61164a4f64bf7d7b29d0a188a Mon Sep 17 00:00:00 2001 From: Samuel Bodin <1637651+bodinsamuel@users.noreply.github.com> Date: Mon, 2 Dec 2024 15:21:09 +0100 Subject: [PATCH] fix(deploy): description was missing after upgrade (#3091) ## Changes Fixes https://linear.app/nango/issue/NAN-2193/upgrade-template-removes-the-desc - Fix upgrading a template would remove description --- packages/shared/lib/services/flow.service.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/shared/lib/services/flow.service.ts b/packages/shared/lib/services/flow.service.ts index c923e33a64..93189d4a88 100644 --- a/packages/shared/lib/services/flow.service.ts +++ b/packages/shared/lib/services/flow.service.ts @@ -84,7 +84,8 @@ class FlowService { models: item.usedModels.map((name) => parsed.models.get(name)!) as any, last_deployed: null, webhookSubscriptions: [], - json_schema: null + json_schema: null, + metadata: { description: item.description, scopes: item.scopes } }); } else { std.syncs.push({ @@ -107,7 +108,8 @@ class FlowService { models: item.usedModels.map((name) => parsed.models.get(name)!) as any, last_deployed: null, webhookSubscriptions: [], - json_schema: null + json_schema: null, + metadata: { description: item.description, scopes: item.scopes } }); } }