Skip to content

Commit

Permalink
fix(deploy): description was missing after upgrade (#3091)
Browse files Browse the repository at this point in the history
## Changes

Fixes
https://linear.app/nango/issue/NAN-2193/upgrade-template-removes-the-desc

- Fix upgrading a template would remove description
  • Loading branch information
bodinsamuel authored Dec 2, 2024
1 parent 2d57b59 commit 5e42eae
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/shared/lib/services/flow.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand All @@ -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 }
});
}
}
Expand Down

0 comments on commit 5e42eae

Please sign in to comment.