rest: restore change client repository

use correct format for mac SQL query to fix 568d709
master
OpenGnSys Support Team 2024-09-10 14:18:51 +02:00
parent 7f325a4b67
commit 1fa3813b92
1 changed files with 1 additions and 1 deletions

View File

@ -1904,7 +1904,7 @@ static int og_dbi_update_client_repo(struct og_dbi *dbi, const char *mac,
result = dbi_conn_queryf(dbi->conn,
"UPDATE ordenadores SET idrepositorio=%u "
"WHERE mac='%u'",
"WHERE mac='%s'",
repo_id, mac);
if (!result) {