mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 06:35:20 +00:00
chore(notification-manager): update message structure to include receivers in notification log data (#5603)
* feat: include receivers in log data for notification sending * feat: enhance message structure to include receivers in notification sending * feat: update message structure to include receivers in notification log data
This commit is contained in:
parent
493ee41f3e
commit
fa64909414
@ -39,10 +39,11 @@ export class NotificationManager implements NotificationManager {
|
||||
async send(params: SendOptions) {
|
||||
this.plugin.logger.info('receive sending message request', params);
|
||||
const channelsRepo = this.plugin.app.db.getRepository(COLLECTION_NAME.channels);
|
||||
const messageData = { ...(params.receivers ? { receivers: params.receivers } : {}), ...params.message };
|
||||
const logData: any = {
|
||||
triggerFrom: params.triggerFrom,
|
||||
channelName: params.channelName,
|
||||
message: params.message,
|
||||
message: messageData,
|
||||
};
|
||||
try {
|
||||
const channel = await channelsRepo.findOne({ filterByTk: params.channelName });
|
||||
|
Loading…
Reference in New Issue
Block a user