Skip to content

Commit 1652aeb

Browse files
committed
Fix: Querying by message name in push events
1 parent 5b45ee4 commit 1652aeb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/push/api/api-drill.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ async function find(q) {
108108
}
109109

110110
const toIdsMappers = {
111-
'message.name': (query, app_id) => find({app: common.db.ObjectID(app_id), 'message.info.name': query}),
111+
'message.name': (query, app_id) => find({app: common.db.ObjectID(app_id), 'info.title': query}),
112112
'message.title': (query, app_id) => find({app: common.db.ObjectID(app_id), 'contents.title': query}),
113113
'message.message': (query, app_id) => find({app: common.db.ObjectID(app_id), 'contents.message': query}),
114114
};

0 commit comments

Comments
 (0)