@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.
- package/dist/modules/sales/commands/configuration.js +2 -2
- package/dist/modules/sales/commands/configuration.js.map +2 -2
- package/dist/modules/sales/commands/documents.js +17 -13
- package/dist/modules/sales/commands/documents.js.map +2 -2
- package/dist/modules/sales/commands/payments.js +6 -6
- package/dist/modules/sales/commands/payments.js.map +2 -2
- package/dist/modules/sales/commands/shipments.js +6 -6
- package/dist/modules/sales/commands/shipments.js.map +2 -2
- package/dist/modules/sales/lib/dictionaries.js +2 -2
- package/dist/modules/sales/lib/dictionaries.js.map +2 -2
- package/package.json +7 -7
- package/src/modules/sales/commands/configuration.ts +2 -2
- package/src/modules/sales/commands/documents.ts +13 -9
- package/src/modules/sales/commands/payments.ts +6 -6
- package/src/modules/sales/commands/shipments.ts +6 -6
- package/src/modules/sales/lib/dictionaries.ts +3 -2
|
@@ -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;
|