2
0
Shun Miyazawa 4 жил өмнө
parent
commit
ab7966c0ad

+ 3 - 2
packages/app/src/server/models/subscription.ts

@@ -28,8 +28,9 @@ export interface SubscriptionModel extends Model<SubscriptionDocument> {
   subscribeByPageId(user: Types.ObjectId, pageId: Types.ObjectId, status: string): any
   getSubscription(target: Types.ObjectId): Promise<Types.ObjectId[]>
   getUnsubscription(target: Types.ObjectId): Promise<Types.ObjectId[]>
-  STATUS_SUBSCRIBE(): string
-  STATUS_UNSUBSCRIBE(): string
+
+  STATUS_SUBSCRIBE: string
+  STATUS_UNSUBSCRIB: string
 }
 
 const subscriptionSchema = new Schema<SubscriptionDocument, SubscriptionModel>({