Просмотр исходного кода

rename subscribeRules to defaultSubscribeRules

Shun Miyazawa 4 лет назад
Родитель
Сommit
700284f78e
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      packages/app/src/server/models/in-app-notification-settings.ts

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

@@ -1,13 +1,13 @@
 import { Schema, Model, Document } from 'mongoose';
 import { Schema, Model, Document } from 'mongoose';
 import { getOrCreateModel } from '../util/mongoose-utils';
 import { getOrCreateModel } from '../util/mongoose-utils';
 
 
-export interface ISubscribeRule {
+export interface IDefaultSubscribeRule {
   name: string,
   name: string,
   isEnabled: boolean;
   isEnabled: boolean;
 }
 }
 export interface IInAppNotificationSettings {
 export interface IInAppNotificationSettings {
   userId: Schema.Types.ObjectId;
   userId: Schema.Types.ObjectId;
-  subscribeRules: ISubscribeRule[];
+  defaultSubscribeRules: IDefaultSubscribeRule[];
 }
 }
 
 
 export interface InAppNotificationSettingsDocument extends IInAppNotificationSettings, Document {}
 export interface InAppNotificationSettingsDocument extends IInAppNotificationSettings, Document {}
@@ -15,7 +15,7 @@ export type InAppNotificationSettingsModel = Model<InAppNotificationSettingsDocu
 
 
 const inAppNotificationSettingsSchema = new Schema<IInAppNotificationSettings>({
 const inAppNotificationSettingsSchema = new Schema<IInAppNotificationSettings>({
   userId: { type: String },
   userId: { type: String },
-  subscribeRules: [{ name: { type: String }, isEnabled: { type: Boolean } }],
+  defaultSubscribeRules: [{ name: { type: String }, isEnabled: { type: Boolean } }],
 });
 });
 
 
 // eslint-disable-next-line max-len
 // eslint-disable-next-line max-len