[verified] Harden Etsy MCP validation and scheduled token refresh
Deploy HickLab3D Dashboard / Deploy to production (push) Successful in 38s

This commit is contained in:
2026-11-07 21:54:33 +00:00
parent 960189d14b
commit c8c5822166
13 changed files with 455 additions and 89 deletions
+4 -1
View File
@@ -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;
}
}