diff --git a/kong/db/schema/entities/routes.lua b/kong/db/schema/entities/routes.lua index e508654afe22..d166c70d29fa 100644 --- a/kong/db/schema/entities/routes.lua +++ b/kong/db/schema/entities/routes.lua @@ -140,10 +140,13 @@ else }, run_with_missing_fields = true, fn = function(entity) - if is_empty_field(entity.snis) and - is_empty_field(entity.sources) and is_empty_field(entity.destinations) and - is_empty_field(entity.methods) and is_empty_field(entity.hosts) and - is_empty_field(entity.paths) and is_empty_field(entity.headers) + if is_empty_field(entity.snis) and + is_empty_field(entity.sources) and + is_empty_field(entity.destinations) and + is_empty_field(entity.methods) and + is_empty_field(entity.hosts) and + is_empty_field(entity.paths) and + is_empty_field(entity.headers) then return true end