lrf402788946 4 лет назад
Родитель
Сommit
74d4cc8514
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app/service/notice.js

+ 1 - 1
app/service/notice.js

@@ -172,7 +172,7 @@ class NoticeService extends CrudService {
       const { content, notified } = res;
       const useridList = notified.filter(f => f.status === '0').map(i => i.notifiedid);
       console.log(useridList);
-      const userList = await this.umodel.find({ _id: { $in: useridList } });
+      const userList = await this.umodel.find({ uid: { $in: useridList } });
       for (const user of userList) {
         if (!_.get(user, 'openid')) continue;
         const openid = _.get(user, 'openid');