Explorar o código

fix to original code

kaori %!s(int64=4) %!d(string=hai) anos
pai
achega
ee1bc96d3f
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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;