From 63c1c404a663bf148e642aca1cd664eb30b9efab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Jaussoin?= Date: Mon, 10 Feb 2025 10:47:09 +0000 Subject: [PATCH] Fix FLEXIAPI-256 Publish an empty string while deleting a device on Redis to... --- CHANGELOG.md | 1 + flexiapi/app/Libraries/FlexisipRedisConnector.php | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1be3bf8..0b9a1e0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ v1.7 - Fix FLEXIAPI-260 Return 404 and not 403 if the contact is already in the list or missing when removing it - Fix FLEXIAPI-262 Bypass the JWT auth if we have an API Key - Fix FLEXIAPI-264 Add -k|api_key_ip parameter to accounts:create-admin-account to set/clear the related API Key restriction +- Fix FLEXIAPI-256 Publish an empty string while deleting a device on Redis to force the refresh on the other clients v1.6 ---- diff --git a/flexiapi/app/Libraries/FlexisipRedisConnector.php b/flexiapi/app/Libraries/FlexisipRedisConnector.php index 47e0d58..dbd2c6a 100644 --- a/flexiapi/app/Libraries/FlexisipRedisConnector.php +++ b/flexiapi/app/Libraries/FlexisipRedisConnector.php @@ -49,6 +49,7 @@ class FlexisipRedisConnector { try { Redis::hdel('fs:' . $from, '"<' . $uuid . '>"'); + Redis::publish($from, ''); } catch (\Throwable $th) { Log::error('Redis server issue: ' . $th->getMessage()); }