mirror of
https://github.com/penpot/penpot.git
synced 2026-08-01 10:56:20 +00:00
🐛 Fix topic encoding on msg publication.
This commit is contained in:
parent
f12f46981b
commit
9b8d73ef86
@ -219,7 +219,7 @@
|
|||||||
|
|
||||||
(defn- impl-redis-pub
|
(defn- impl-redis-pub
|
||||||
[rac {:keys [topic message]}]
|
[rac {:keys [topic message]}]
|
||||||
(let [topic (str topic)
|
(let [topic (str (cfg/get :tenant) "." topic)
|
||||||
message (blob/encode message)
|
message (blob/encode message)
|
||||||
res (a/chan 1)]
|
res (a/chan 1)]
|
||||||
(-> (.publish ^RedisAsyncCommands rac ^String topic ^bytes message)
|
(-> (.publish ^RedisAsyncCommands rac ^String topic ^bytes message)
|
||||||
|
|||||||
@ -313,7 +313,7 @@
|
|||||||
(let [lchanges (filter library-change? changes)]
|
(let [lchanges (filter library-change? changes)]
|
||||||
|
|
||||||
;; Asynchronously publish message to the msgbus
|
;; Asynchronously publish message to the msgbus
|
||||||
(msgbus :pub {:topic (str (:id file))
|
(msgbus :pub {:topic (:id file)
|
||||||
:message
|
:message
|
||||||
{:type :file-change
|
{:type :file-change
|
||||||
:profile-id (:profile-id params)
|
:profile-id (:profile-id params)
|
||||||
@ -325,7 +325,7 @@
|
|||||||
(when (and (:is-shared file) (seq lchanges))
|
(when (and (:is-shared file) (seq lchanges))
|
||||||
(let [team-id (retrieve-team-id conn (:project-id file))]
|
(let [team-id (retrieve-team-id conn (:project-id file))]
|
||||||
;; Asynchronously publish message to the msgbus
|
;; Asynchronously publish message to the msgbus
|
||||||
(msgbus :pub {:topic (str team-id)
|
(msgbus :pub {:topic team-id
|
||||||
:message
|
:message
|
||||||
{:type :library-change
|
{:type :library-change
|
||||||
:profile-id (:profile-id params)
|
:profile-id (:profile-id params)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user