@porulle/plugin-channel-connector 0.40.1 → 0.41.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/service.js CHANGED
@@ -3201,7 +3201,9 @@ export class ChannelConnectorService {
3201
3201
  if (!store.catalogWriteEnabled)
3202
3202
  return Ok({ noop: true });
3203
3203
  const connector = this.connectors.get(store.provider);
3204
- if (!connector?.pushCatalog)
3204
+ if (!connector)
3205
+ return PluginErr(`No connector registered for provider "${store.provider}".`);
3206
+ if (!connector.pushCatalog)
3205
3207
  return Ok({ noop: true });
3206
3208
  if (isCatalogPushBreakerOpen(store.breakerState)) {
3207
3209
  await runtime.jobs.enqueue("channel/push-catalog", {