wsp-ms-core 1.0.84 → 1.0.86

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/index.d.mts CHANGED
@@ -438,7 +438,7 @@ interface EventMessage {
438
438
  topic: string;
439
439
  producer: string;
440
440
  tenant: UUID;
441
- message: Record<string, any>;
441
+ message: string;
442
442
  }
443
443
  interface EventManagerConnection {
444
444
  userName: string;
package/dist/index.d.ts CHANGED
@@ -438,7 +438,7 @@ interface EventMessage {
438
438
  topic: string;
439
439
  producer: string;
440
440
  tenant: UUID;
441
- message: Record<string, any>;
441
+ message: string;
442
442
  }
443
443
  interface EventManagerConnection {
444
444
  userName: string;
package/dist/index.js CHANGED
@@ -1607,8 +1607,9 @@ var KafkaManager = class extends EventManager {
1607
1607
  date: DateTime.now().value,
1608
1608
  tenant: e.tenant.value,
1609
1609
  producer: e.producer,
1610
- data: e.message
1610
+ data: JSON.parse(e.message)
1611
1611
  };
1612
+ console.log(evt);
1612
1613
  try {
1613
1614
  if (!this.producer) {
1614
1615
  throw new InternalError(ErrorManager.APP_ERRORS.PROCESS, "Producer not initialized");
@@ -1748,7 +1749,7 @@ var DefaultMysqlOutboxRunner = class {
1748
1749
  topic: e.topic,
1749
1750
  producer: process.env.NAME && process.env.ENVIRONMENT ? `${process.env.NAME}-${process.env.ENVIRONMENT}` : "unknown",
1750
1751
  tenant: e.tenantUuid,
1751
- message: JSON.parse(e.payload)
1752
+ message: e.payload
1752
1753
  });
1753
1754
  e.markProcessed();
1754
1755
  } catch (error) {