From e3a9814167cca4926aa255f5020b19e808b9acfa Mon Sep 17 00:00:00 2001 From: Javier Hernandez Date: Thu, 8 Feb 2024 09:58:00 +0100 Subject: rest: room in folder can't be updated change code to make possible to update rooms that are inside folders --- src/dbi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dbi.c b/src/dbi.c index fd93fcf..3d2608d 100644 --- a/src/dbi.c +++ b/src/dbi.c @@ -137,7 +137,7 @@ int og_dbi_get_room_info(struct og_dbi *dbi, struct og_room *room, result = dbi_conn_queryf(dbi->conn, "SELECT nombreaula, router, netmask " - "FROM aulas WHERE idaula=%d AND grupoid=0", + "FROM aulas WHERE idaula=%d", room_id); if (!result) { dbi_conn_error(dbi->conn, &msglog); -- cgit v1.2.3-18-g5258