[verified] Harden Etsy MCP validation and scheduled token refresh
Deploy HickLab3D Dashboard / Deploy to production (push) Successful in 38s
Deploy HickLab3D Dashboard / Deploy to production (push) Successful in 38s
This commit is contained in:
@@ -23,10 +23,12 @@ class EtsySync extends Command
|
||||
return self::SUCCESS;
|
||||
}
|
||||
|
||||
$failed = false;
|
||||
try {
|
||||
$receipts = $etsy->receipts($connection, fresh: true);
|
||||
$this->line('etsy receipts: refreshed ('.($receipts['count'] ?? 0).' open)');
|
||||
} catch (Throwable $exception) {
|
||||
$failed = true;
|
||||
$this->warn('etsy receipts: '.$exception->getMessage());
|
||||
}
|
||||
|
||||
@@ -34,9 +36,10 @@ class EtsySync extends Command
|
||||
$listings = $etsy->listings($connection, fresh: true);
|
||||
$this->line('etsy listings: refreshed ('.count($listings['results'] ?? []).' active)');
|
||||
} catch (Throwable $exception) {
|
||||
$failed = true;
|
||||
$this->warn('etsy listings: '.$exception->getMessage());
|
||||
}
|
||||
|
||||
return self::SUCCESS;
|
||||
return $failed ? self::FAILURE : self::SUCCESS;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user