From 91311f4df21c54d4bb5448fe1daacdaaacd0efba Mon Sep 17 00:00:00 2001 From: Misha Merkushin Date: Tue, 29 Oct 2024 12:04:01 +0300 Subject: [PATCH] [DEX-2706] fix: support postgis database type when deleting stale items --- CHANGELOG.md | 6 ++++++ app/jobs/sbmt/outbox/base_delete_stale_items_job.rb | 2 +- lib/sbmt/outbox/version.rb | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8db8b07..8de09b3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ### Fixed +## [6.10.4] - 2024-10-29 + +### Fixed + +- fix deleting stale items from Postgis + ## [6.10.3] - 2024-10-22 ### Fixed diff --git a/app/jobs/sbmt/outbox/base_delete_stale_items_job.rb b/app/jobs/sbmt/outbox/base_delete_stale_items_job.rb index 85bc518..4b36b2b 100644 --- a/app/jobs/sbmt/outbox/base_delete_stale_items_job.rb +++ b/app/jobs/sbmt/outbox/base_delete_stale_items_job.rb @@ -148,7 +148,7 @@ def mysql_delete_in_batches(waterline) def database_type adapter_name = item_class.connection.adapter_name.downcase case adapter_name - when "postgresql" + when "postgresql", "postgis" :postgresql when "mysql2" :mysql diff --git a/lib/sbmt/outbox/version.rb b/lib/sbmt/outbox/version.rb index 92a6d40..1505807 100644 --- a/lib/sbmt/outbox/version.rb +++ b/lib/sbmt/outbox/version.rb @@ -2,6 +2,6 @@ module Sbmt module Outbox - VERSION = "6.10.3" + VERSION = "6.10.4" end end