Inserve configuration API call does not longer require the obsolete source_name field.

This commit is contained in:
2026-06-12 23:27:55 +02:00
parent a60ebadd60
commit aece25439b
3 changed files with 9 additions and 16 deletions

View File

@@ -20,14 +20,15 @@ class API_system_sources extends API
source_custom_data,
source_create_timestamp,
source_modified_timestamp)
VALUES (UUID(), ?, ?, '', '', ?, ?, ?, NULL)
VALUES (UUID(), 'inserve', ?, '', '', ?, ?, ?, NULL)
ON DUPLICATE KEY UPDATE
source_url = VALUES(source_url),
source_auth_token = VALUES(source_auth_token),
source_custom_data = VALUES(source_custom_data),
source_modified_timestamp = VALUES(source_create_timestamp)";
$stmt = $this->prepareStatement($query);
$stmt->bind_param('ssssi', $this->data['source_name'], $this->data['source_url'], $this->data['source_auth_token'], $this->data['source_custom_data'], time());
$source_modified_timestamp = time();
$stmt->bind_param('sssi', $this->data['source_url'], $this->data['source_auth_token'], $this->data['source_custom_data'], $source_modified_timestamp);
$this->executeStatement($stmt);
$stmt->close();