Skip to content

Commit

Permalink
check delta.entity nil
Browse files Browse the repository at this point in the history
  • Loading branch information
chronolaw committed Oct 31, 2024
1 parent d0ca3c4 commit 194bf88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kong/clustering/services/sync/rpc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ local function do_sync()
-- set the correct workspace for item
opts.workspace = assert(delta.ws_id)

if delta_entity ~= ngx_null then
if delta_entity ~= nil and delta_entity ~= ngx_null then
-- upsert the entity
-- does the entity already exists?
local old_entity, err = db[delta_type]:select(delta_entity)
Expand Down

0 comments on commit 194bf88

Please sign in to comment.