mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-30 01:48:12 +00:00
fix: ( payment ) pass major amount to the payment provider
This commit is contained in:
@@ -35,12 +35,14 @@ export class SmsClientService implements OnApplicationBootstrap {
|
||||
this.logger.warn(`RABBITMQ disabled — skipped SMS to ${dto.to}`);
|
||||
return {};
|
||||
}
|
||||
// The external send-sms consumer reads the content from `sms`, not `message`.
|
||||
this.smsClient.emit("send-sms", {
|
||||
...dto,
|
||||
to: dto.to,
|
||||
sms: dto.message,
|
||||
appKey: "IFHCRS-LICENSE-MANAGEMENT",
|
||||
});
|
||||
this.logger.log(
|
||||
`SMS emitted to RabbitMQ [${process.env.SMS_QUEUE ?? "sms_queue"}] pattern='send-sms' to=${dto.to} message="${dto.message}"`,
|
||||
`SMS emitted to RabbitMQ [${process.env.SMS_QUEUE ?? "sms_queue"}] pattern='send-sms' to=${dto.to} sms="${dto.message}"`,
|
||||
);
|
||||
return {};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user