mirror of
https://github.com/dani/vroom.git
synced 2024-06-26 17:43:29 +02:00
Return OK when everything is fine in get_room_by_*
This commit is contained in:
parent
c195448b05
commit
fb101cb1b9
2
vroom.pl
2
vroom.pl
|
@ -222,6 +222,7 @@ helper get_room_by_name => sub {
|
|||
return {msg => "DB Error: " . $sth->errstr . " (code " . $sth->err . ")"};
|
||||
}
|
||||
return {
|
||||
ok => 1,
|
||||
data => $sth->fetchall_hashref('name')->{$name}
|
||||
};
|
||||
};
|
||||
|
@ -247,6 +248,7 @@ helper get_room_by_id => sub {
|
|||
return {msg => "DB Error: " . $sth->errstr . " (code " . $sth->err . ")"};
|
||||
}
|
||||
return {
|
||||
ok => 1,
|
||||
data => $sth->fetchall_hashref('id')->{$id}
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user