Jelajahi Sumber

improve in-app-notification enum

kaori 4 tahun lalu
induk
melakukan
1c8f7c00a6
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      packages/app/src/server/models/in-app-notification.ts

+ 1 - 1
packages/app/src/server/models/in-app-notification.ts

@@ -65,7 +65,7 @@ const inAppNotificationSchema = new Schema<InAppNotificationDocument, InAppNotif
   status: {
     type: String,
     default: STATUS_UNREAD,
-    enum: [STATUS_UNREAD, STATUS_UNOPENED, STATUS_OPENED],
+    enum: InAppNotificationStatuses,
     index: true,
     require: true,
   },