Shun Miyazawa 4 years ago
parent
commit
e3022a1d50
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/app/src/server/service/in-app-notification.ts

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

@@ -126,7 +126,7 @@ export default class InAppNotificationService {
     }
   };
 
-  createSubscription = async function(userId: Types.ObjectId, pageId: string, targetRuleName: string): Promise<void> {
+  createSubscription = async function(userId: Types.ObjectId, pageId: Types.ObjectId, targetRuleName: string): Promise<void> {
     const query = { userId };
     const inAppNotificationSettings = await InAppNotificationSettings.findOne(query);
     if (inAppNotificationSettings != null) {