summary refs log tree commit diff
path: root/synapse/storage/pusher.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2019-10-10 15:59:35 +0100
committerGitHub <noreply@github.com>2019-10-10 15:59:35 +0100
commit329eae9cda8c57b00ce5aeba5ac12356a8ae9775 (patch)
tree810580232ad1fbb8943dbb37870978d44b62ddbe /synapse/storage/pusher.py
parentMerge pull request #6191 from matrix-org/rav/fix_packaging (diff)
parentFix postgres unit tests (diff)
downloadsynapse-329eae9cda8c57b00ce5aeba5ac12356a8ae9775.tar.xz
Merge pull request #6186 from matrix-org/erikj/disable_sql_bytes
Disable bytes usage with postgres
Diffstat (limited to 'synapse/storage/pusher.py')
-rw-r--r--synapse/storage/pusher.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/pusher.py b/synapse/storage/pusher.py
index 3e0e834a62..b12e80440a 100644
--- a/synapse/storage/pusher.py
+++ b/synapse/storage/pusher.py
@@ -241,7 +241,7 @@ class PusherStore(PusherWorkerStore):
                     "device_display_name": device_display_name,
                     "ts": pushkey_ts,
                     "lang": lang,
-                    "data": encode_canonical_json(data),
+                    "data": bytearray(encode_canonical_json(data)),
                     "last_stream_ordering": last_stream_ordering,
                     "profile_tag": profile_tag,
                     "id": stream_id,