浏览代码

fix to original code

kaori 4 年之前
父节点
当前提交
ee1bc96d3f
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      packages/app/src/server/service/in-app-notification.ts

+ 2 - 2
packages/app/src/server/service/in-app-notification.ts

@@ -140,8 +140,8 @@ export default class InAppNotificationService {
   }
 
   updateAllNotificationsAsOpened = async function(user: IUser & HasObjectId): Promise<void> {
-    const filter = { user: user._id, status: STATUS_OPENED };
-    const options = { status: STATUS_UNOPENED };
+    const filter = { user: user._id, status: STATUS_UNOPENED };
+    const options = { status: STATUS_OPENED };
 
     await InAppNotification.updateMany(filter, options);
     return;