fix(ignore): Ability to use a specified endpoint in the Tz.Converter (#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>
This commit is contained in:
Ilya Kirov
2023-12-25 10:48:15 +01:00
committed by GitHub
co-authored by Koen Kanters
parent fe7e82f7d3
commit d702919735
+3 -1
View File
@@ -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