Shun Miyazawa 4 лет назад
Родитель
Сommit
bc748cc3b0
1 измененных файлов с 1 добавлено и 1 удалено
  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: string, pageId: string, targetRuleName: string): Promise<void> {
+  createSubscription = async function(userId: Types.ObjectId, pageId: string, targetRuleName: string): Promise<void> {
     const inAppNotificationSettings = await InAppNotificationSettings.findOne({ userId });
     if (inAppNotificationSettings != null) {
       const subscribeRule = inAppNotificationSettings.subscribeRules.find(subscribeRule => subscribeRule.name === targetRuleName);