Skip to content

Commit

Permalink
fix(cluster) add missing error handling in Postgres strategy
Browse files Browse the repository at this point in the history
From #2709
  • Loading branch information
Tieske authored and thibaultcha committed Jul 19, 2017
1 parent e061962 commit 982af59
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions kong/cluster_events/strategies/postgres.lua
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ function _M:select_interval(channels, min_at, max_at)
end

local res, err = self.db:query(q)
if not res then
return nil, err
end

local page = #res > 0 and 1 or 0

Expand Down

0 comments on commit 982af59

Please sign in to comment.