@open-mercato/core 0.6.5-develop.5116.1.f0af9e5080 → 0.6.5-develop.5139.1.g7925348493

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.
@@ -427,7 +427,7 @@ const createChannelCommand = {
427
427
  ensureTenantScope(ctx, parsed.tenantId);
428
428
  ensureOrganizationScope(ctx, parsed.organizationId);
429
429
  const em = ctx.container.resolve("em").fork();
430
- const statusValue = await resolveDictionaryEntryValue(em, parsed.statusEntryId ?? null);
430
+ const statusValue = await resolveDictionaryEntryValue(em, parsed.statusEntryId ?? null, { tenantId: parsed.tenantId });
431
431
  const record = em.create(SalesChannel, {
432
432
  organizationId: parsed.organizationId,
433
433
  tenantId: parsed.tenantId,
@@ -587,7 +587,7 @@ const updateChannelCommand = {
587
587
  if (parsed.description !== void 0) record.description = parsed.description ?? null;
588
588
  if (parsed.statusEntryId !== void 0) {
589
589
  record.statusEntryId = parsed.statusEntryId ?? null;
590
- record.status = await resolveDictionaryEntryValue(em, parsed.statusEntryId ?? null);
590
+ record.status = await resolveDictionaryEntryValue(em, parsed.statusEntryId ?? null, { tenantId: scope.tenantId });
591
591
  }
592
592
  if (parsed.websiteUrl !== void 0) record.websiteUrl = parsed.websiteUrl ?? null;
593
593
  if (parsed.contactEmail !== void 0) record.contactEmail = parsed.contactEmail ?? null;