diff options
author | Erik Johnston <erik@matrix.org> | 2015-04-16 11:17:52 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2015-04-16 11:17:52 +0100 |
commit | b8092fbc82edb3c7d8aa09f0756fa853ad6a6ad8 (patch) | |
tree | 57fad9f09c102550fdbad7ac047ec02eb6a24283 /synapse/storage/appservice.py | |
parent | Move encoding and decoding of JSON into storage layer (diff) | |
download | synapse-b8092fbc82edb3c7d8aa09f0756fa853ad6a6ad8.tar.xz |
Go back to storing JSON in TEXT
Diffstat (limited to 'synapse/storage/appservice.py')
-rw-r--r-- | synapse/storage/appservice.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/synapse/storage/appservice.py b/synapse/storage/appservice.py index 40e05b3635..63d1af4e86 100644 --- a/synapse/storage/appservice.py +++ b/synapse/storage/appservice.py @@ -366,9 +366,7 @@ class ApplicationServiceTransactionStore(SQLBaseStore): new_txn_id = max(highest_txn_id, last_txn_id) + 1 # Insert new txn into txn table - event_ids = buffer( - json.dumps([e.event_id for e in events]).encode("utf8") - ) + event_ids = json.dumps([e.event_id for e in events]) txn.execute( "INSERT INTO application_services_txns(as_id, txn_id, event_ids) " "VALUES(?,?,?)", |