瀏覽代碼

Update FollowPipeline

Daniel Supernault 10 月之前
父節點
當前提交
873031538d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/Jobs/FollowPipeline/FollowPipeline.php

+ 1 - 1
app/Jobs/FollowPipeline/FollowPipeline.php

@@ -92,7 +92,7 @@ class FollowPipeline implements ShouldQueue
                 if (PushNotificationService::check('follow', $target->id)) {
                     $user = User::whereProfileId($target->id)->first();
                     if ($user && $user->expo_token && $user->notify_enabled) {
-                        FollowPushNotifyPipeline::dispatchSync($user->expo_token, $actor->username);
+                        FollowPushNotifyPipeline::dispatch($user->expo_token, $actor->username)->onQueue('pushnotify');
                     }
                 }
             }