diff options
Diffstat (limited to 'lib/nickserver')
-rw-r--r-- | lib/nickserver/couch/fetch_key.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/nickserver/couch/fetch_key.rb b/lib/nickserver/couch/fetch_key.rb index d729ebc..db1e390 100644 --- a/lib/nickserver/couch/fetch_key.rb +++ b/lib/nickserver/couch/fetch_key.rb @@ -37,7 +37,7 @@ module Nickserver; module Couch def parse_key_from_response(uid, response) json = JSON.load(response) - if json["offset"] == 0 + if json["rows"].empty? self.fail 404, "Not Found" else return json["rows"].first["value"] |