mirror of
https://gitee.com/nocobase/nocobase.git
synced 2024-12-02 04:07:50 +08: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