fix(消息管理): 消息通知除执行事件外不显示操作人

This commit is contained in:
guoyuqi 2024-02-06 17:49:47 +08:00 committed by Craftsman
parent 701f5e3b5b
commit cb3d2ed2ea
1 changed files with 5 additions and 1 deletions

View File

@ -322,7 +322,11 @@
function getReceiverOptions(options, event: string) { function getReceiverOptions(options, event: string) {
if (event === 'CREATE') { if (event === 'CREATE') {
// //
return options.filter((e) => !['OPERATOR', 'CREATE_USER', 'FOLLOW_PEOPLE'].includes(e.id)); options = options.filter((e) => !['OPERATOR', 'CREATE_USER', 'FOLLOW_PEOPLE'].includes(e.id));
}
if (event.indexOf('EXECUTE') === -1) {
//
options = options.filter((e) => !['OPERATOR'].includes(e.id));
} }
return options; return options;
} }