From 7d06352763824768703c1d236bca46615bfe9a29 Mon Sep 17 00:00:00 2001 From: aibou Date: Mon, 21 Aug 2017 16:01:39 +0900 Subject: [PATCH] 'delete timeboard' API returns 204 when the deletion was successful --- lib/dashdog/client.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dashdog/client.rb b/lib/dashdog/client.rb index c27449b..91f3777 100644 --- a/lib/dashdog/client.rb +++ b/lib/dashdog/client.rb @@ -45,7 +45,7 @@ def update_timeboard(tb) def delete_timeboard(id) ret = @api.delete_dashboard(id) - raise RuntimeError, ret[1]['errors'] if ret[0] != '200' + raise RuntimeError, ret[1]['errors'] if ret[0] != '204' end def create_screenboard(sb)