mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-18 06:13:45 +02:00
Add successful column to server_transfers table, get server transfers working properly :)
This commit is contained in:
@@ -11,18 +11,20 @@ class DaemonTransferRepository extends DaemonRepository
|
||||
{
|
||||
/**
|
||||
* @param Server $server
|
||||
* @param array $data
|
||||
* @param Node $node
|
||||
* @param string $token
|
||||
*
|
||||
* @throws DaemonConnectionException
|
||||
*/
|
||||
public function notify(Server $server, Node $node, string $token): void {
|
||||
public function notify(Server $server, array $data, Node $node, string $token): void {
|
||||
try {
|
||||
$this->getHttpClient()->post('/api/transfer', [
|
||||
'json' => [
|
||||
'server_id' => $server->uuid,
|
||||
'url' => $node->getConnectionAddress() . sprintf('/api/servers/%s/archive', $server->uuid),
|
||||
'token' => 'Bearer ' . $token,
|
||||
'server' => $data,
|
||||
],
|
||||
]);
|
||||
} catch(TransferException $exception) {
|
||||
|
||||
Reference in New Issue
Block a user