diff --git a/src/Controllers/ServerController.php b/src/Controllers/ServerController.php index 7c916f5..8c025e1 100755 --- a/src/Controllers/ServerController.php +++ b/src/Controllers/ServerController.php @@ -195,7 +195,7 @@ class ServerController extends Model $stmt = $this->pdo->prepare(" INSERT INTO agent_tokens (server_id, token_hash, encrypted_token) VALUES (:server_id, :token_hash, :encrypted_token) - ON DUPLICATE KEY UPDATE token_hash = :token_hash, encrypted_token = :encrypted_token + ON DUPLICATE KEY UPDATE token_hash = VALUES(token_hash), encrypted_token = VALUES(encrypted_token) "); $result = $stmt->execute([