|
@@ -63,8 +63,12 @@ class ProfileMigrationController extends Controller
|
|
|
AccountService::del($user->profile_id);
|
|
|
|
|
|
Bus::batch([
|
|
|
- new ProfileMigrationDeliverMoveActivityPipeline($migration, $user->profile, $newAccount),
|
|
|
- new ProfileMigrationMoveFollowersPipeline($user->profile_id, $newAccount->id),
|
|
|
+ [
|
|
|
+ new ProfileMigrationDeliverMoveActivityPipeline($migration, $user->profile, $newAccount),
|
|
|
+ ],
|
|
|
+ [
|
|
|
+ new ProfileMigrationMoveFollowersPipeline($user->profile_id, $newAccount->id),
|
|
|
+ ]
|
|
|
])->onQueue('follow')->dispatch();
|
|
|
|
|
|
return redirect()->back()->with(['status' => 'Succesfully migrated account!']);
|