Skip to content

Commit 83b8087

Browse files
add methods to destinations.yml (#564)
* add methods to destinations.yml I'd like to add booleans for whether each method is supported by each destination. I've put this code together, and when I try to run in on my local setup, it's not updating the destinations.yml file and I'm not sure why. * Update catalog.js * fixing my code Co-authored-by: LRubin <[email protected]>
1 parent 4f4144a commit 83b8087

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

scripts/catalog.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -231,11 +231,12 @@ const updateDestinations = async () => {
231231
components: destination.components,
232232
platforms: destination.platforms,
233233
browserUnbundlingSupported: destination.browserUnbundlingSupported,
234-
browserUnbundlingPublic: destination.browserUnbundlingPublic
234+
browserUnbundlingPublic: destination.browserUnbundlingPublic,
235+
methods: destination.methods
235236
})
236237

237238
let url = `connections/destinations/catalog/${slug}`
238-
239+
239240
let settings = destination.settings
240241
settings.sort((a, b) => {
241242
if(a.display_name < b.display_name) { return -1; }
@@ -251,7 +252,7 @@ const updateDestinations = async () => {
251252
})
252253
}
253254
})
254-
255+
255256
let updatedDestination = {
256257
display_name: destination.display_name,
257258
slug,
@@ -271,6 +272,7 @@ const updateDestinations = async () => {
271272
platforms: destination.platforms,
272273
browserUnbundlingSupported: destination.browserUnbundlingSupported,
273274
browserUnbundlingPublic: destination.browserUnbundlingPublic,
275+
methods: destination.methods,
274276
settings,
275277
connection_modes,
276278
previous_names: destination.previous_names

0 commit comments

Comments
 (0)