summary refs log tree commit diff
path: root/synapse/storage/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'synapse/storage/__init__.py')
-rw-r--r--synapse/storage/__init__.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/storage/__init__.py b/synapse/storage/__init__.py
index 514d7eeb69..e8faba3eeb 100644
--- a/synapse/storage/__init__.py
+++ b/synapse/storage/__init__.py
@@ -96,7 +96,9 @@ class DataStore(RoomMemberStore, RoomStore,
         if pdu is not None:
             self._persist_event_pdu_txn(txn, pdu)
         if event is not None:
-            self._persist_event_txn(txn, event, backfilled, stream_ordering)
+            return self._persist_event_txn(
+                txn, event, backfilled, stream_ordering
+            )
 
     def _persist_event_pdu_txn(self, txn, pdu):
         cols = dict(pdu.__dict__)