From 65a8aa0ece509243b5a59336f1654627a1925f06 Mon Sep 17 00:00:00 2001 From: philipp lang Date: Thu, 26 May 2022 01:29:19 +0200 Subject: [PATCH] Add member resync command --- app/Console/Commands/MemberResyncCommand.php | 41 ++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 app/Console/Commands/MemberResyncCommand.php diff --git a/app/Console/Commands/MemberResyncCommand.php b/app/Console/Commands/MemberResyncCommand.php new file mode 100644 index 00000000..622a0a36 --- /dev/null +++ b/app/Console/Commands/MemberResyncCommand.php @@ -0,0 +1,41 @@ +login(); + + $api->search([])->each( + fn (NamiMember $member) => app(MemberPullAction::class)->api($api)->member($member->group_id, $member->id)->execute() + ); + + return 0; + } +}