mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 12:56:02 -04:00
fix idiocies and so make tests pass
This commit is contained in:
parent
174be586e5
commit
15d513f16f
3 changed files with 15 additions and 11 deletions
|
@ -207,6 +207,7 @@ class EndToEndRoomKeyStore(SQLBaseStore):
|
|||
this_version = version
|
||||
|
||||
return self._simple_select_one_txn(
|
||||
txn,
|
||||
table="e2e_room_keys_versions",
|
||||
keyvalues={
|
||||
"user_id": user_id,
|
||||
|
@ -243,9 +244,9 @@ class EndToEndRoomKeyStore(SQLBaseStore):
|
|||
)
|
||||
current_version = txn.fetchone()[0]
|
||||
if current_version is None:
|
||||
current_version = 0
|
||||
current_version = '0'
|
||||
|
||||
new_version = current_version + 1
|
||||
new_version = str(int(current_version) + 1)
|
||||
|
||||
self._simple_insert_txn(
|
||||
txn,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue