feat(Nextcloud sync & optimize)
All checks were successful
Deploy Roxane to Preprod / deploy (push) Successful in 1m18s

This commit is contained in:
2026-01-30 15:27:23 +01:00
parent b8de637b23
commit 9649d99e15
11 changed files with 307 additions and 245 deletions

View File

@@ -2,8 +2,10 @@
namespace App\Console\Commands;
use App\Models\Member;
use App\Services\Dolibarr\DolibarrService;
use App\Services\ISPConfig\ISPConfigMailService;
use App\Services\MemberService;
use App\Services\Nextcloud\NextcloudService;
use Illuminate\Console\Command;
use Illuminate\Http\Client\ConnectionException;
@@ -19,7 +21,8 @@ class HandleExpiredMembersDolibarr extends Command
public function __construct(
protected DolibarrService $dolibarr,
protected ISPConfigMailService $mailService,
protected NextcloudService $nextcloud
protected NextcloudService $nextcloud,
protected MemberService $memberService
)
{
parent::__construct();
@@ -112,6 +115,12 @@ class HandleExpiredMembersDolibarr extends Command
]);
}
// Résilitation Roxane
$roxaneMember = Member::query()->findOrFail($member['id']);
if ($roxaneMember) {
$this->memberService->deactivateMember($roxaneMember);
}
// Désactivation mail
if ($email) {
$this->disableMailAccount($email, $dryRun);