summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJavier Hernandez <jhernandez@soleta.eu>2024-02-08 09:58:00 +0100
committerOpenGnSys Support Team <soporte-og@soleta.eu>2024-02-08 10:03:39 +0100
commite3a9814167cca4926aa255f5020b19e808b9acfa (patch)
tree665292960fd504144d1549691bec693173d38fa8
parent16ca353576d32903252fc7470c2f37d3e1d324df (diff)
rest: room in folder can't be updated
change code to make possible to update rooms that are inside folders
-rw-r--r--src/dbi.c2
1 files changed, 1 insertions, 1 deletions
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);