From fb101cb1b930ef9a2ebc11d9cbb9bafbc5ecc295 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Tue, 14 Oct 2014 23:12:06 +0200 Subject: [PATCH] Return OK when everything is fine in get_room_by_* --- vroom.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vroom.pl b/vroom.pl index 44444f6..8213329 100755 --- a/vroom.pl +++ b/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} }; };