Skip to content

Commit 5084a4b

Browse files
authored
Merge pull request #4734 from pnrgenc/push-drill-query-fix
[push] Fixed query mapping for push properties to allow searching by push message name.
2 parents 5b45ee4 + 1652aeb commit 5084a4b

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)