Skip to content

Commit

Permalink
fix(ignore): Ability to use a specified endpoint in the Tz.Converter (#…
Browse files Browse the repository at this point in the history
…20356)

* Ability to use a specified endpoint in the Tz.Converter

* Update publish.ts

* Update publish.ts

---------

Co-authored-by: Koen Kanters <koenkanters94@gmail.com>
  • Loading branch information
kirovilya and Koenkk committed Dec 25, 2023
1 parent fe7e82f commit d702919
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/extension/publish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,9 @@ export default class Publish extends Extension {
}

if (!usedConverters.hasOwnProperty(endpointOrGroupID)) usedConverters[endpointOrGroupID] = [];
const converter = converters.find((c) => c.key.includes(key));
/* istanbul ignore next */
const converter = converters.find((c) =>
c.key.includes(key) && (!c.endpoint || c.endpoint == endpointName));

if (parsedTopic.type === 'set' && usedConverters[endpointOrGroupID].includes(converter)) {
// Use a converter for set only once
Expand Down

0 comments on commit d702919

Please sign in to comment.