summaryrefslogtreecommitdiffstats
path: root/src/rest.c
diff options
context:
space:
mode:
authorOpenGnSys Support Team <soporte-og@soleta.eu>2024-09-10 14:18:51 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2024-09-10 14:22:38 +0200
commit1fa3813b92139458854f33436c3e4af2f8ecae6b (patch)
tree4c410aeb91562d9ef27b8fb8345315c5a55e2403 /src/rest.c
parent7f325a4b67eee90b1bb7f8bd55c1a1688a801cc0 (diff)
rest: restore change client repository
use correct format for mac SQL query to fix 568d709
Diffstat (limited to 'src/rest.c')
-rw-r--r--src/rest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rest.c b/src/rest.c
index a86a9ec..1894111 100644
--- a/src/rest.c
+++ b/src/rest.c
@@ -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) {