Skip to content

Commit

Permalink
Ability to use a specified endpoint in the Tz.Converter
Browse files Browse the repository at this point in the history
  • Loading branch information
kirovilya committed Dec 23, 2023
1 parent 6875146 commit 1a3662d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/extension/publish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ export default class Publish extends Extension {
}

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

Check failure on line 209 in lib/extension/publish.ts

View workflow job for this annotation

GitHub Actions / ci

Property 'endpoint' does not exist on type 'Converter'.

Check failure on line 209 in lib/extension/publish.ts

View workflow job for this annotation

GitHub Actions / ci

Property 'endpoint' does not exist on type 'Converter'.

Check failure on line 209 in lib/extension/publish.ts

View workflow job for this annotation

GitHub Actions / tests (ubuntu-latest, 18)

Property 'endpoint' does not exist on type 'Converter'.

Check failure on line 209 in lib/extension/publish.ts

View workflow job for this annotation

GitHub Actions / tests (ubuntu-latest, 18)

Property 'endpoint' does not exist on type 'Converter'.

Check failure on line 209 in lib/extension/publish.ts

View workflow job for this annotation

GitHub Actions / tests (ubuntu-latest, 20)

Property 'endpoint' does not exist on type 'Converter'.

Check failure on line 209 in lib/extension/publish.ts

View workflow job for this annotation

GitHub Actions / tests (ubuntu-latest, 20)

Property 'endpoint' does not exist on type 'Converter'.

Check failure on line 209 in lib/extension/publish.ts

View workflow job for this annotation

GitHub Actions / tests (macos-latest, 18)

Property 'endpoint' does not exist on type 'Converter'.

Check failure on line 209 in lib/extension/publish.ts

View workflow job for this annotation

GitHub Actions / tests (macos-latest, 18)

Property 'endpoint' does not exist on type 'Converter'.

Check failure on line 209 in lib/extension/publish.ts

View workflow job for this annotation

GitHub Actions / tests (macos-latest, 20)

Property 'endpoint' does not exist on type 'Converter'.

Check failure on line 209 in lib/extension/publish.ts

View workflow job for this annotation

GitHub Actions / tests (macos-latest, 20)

Property 'endpoint' does not exist on type 'Converter'.

Check failure on line 209 in lib/extension/publish.ts

View workflow job for this annotation

GitHub Actions / tests (windows-latest, 18)

Property 'endpoint' does not exist on type 'Converter'.

Check failure on line 209 in lib/extension/publish.ts

View workflow job for this annotation

GitHub Actions / tests (windows-latest, 18)

Property 'endpoint' does not exist on type 'Converter'.

Check failure on line 209 in lib/extension/publish.ts

View workflow job for this annotation

GitHub Actions / tests (windows-latest, 20)

Property 'endpoint' does not exist on type 'Converter'.

Check failure on line 209 in lib/extension/publish.ts

View workflow job for this annotation

GitHub Actions / tests (windows-latest, 20)

Property 'endpoint' does not exist on type 'Converter'.

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

0 comments on commit 1a3662d

Please sign in to comment.