mirror of
https://github.com/element-hq/synapse
synced 2024-08-19 22:00:22 +00:00
Literally a dictionary
This commit is contained in:
parent
4836864f56
commit
d9f38561c8
1 changed files with 17 additions and 17 deletions
|
@ -130,23 +130,23 @@ class PusherStore(SQLBaseStore):
|
||||||
return self._simple_upsert_txn(
|
return self._simple_upsert_txn(
|
||||||
txn,
|
txn,
|
||||||
"pushers",
|
"pushers",
|
||||||
dict(
|
{
|
||||||
app_id=app_id,
|
"app_id": app_id,
|
||||||
pushkey=pushkey,
|
"pushkey": pushkey,
|
||||||
user_name=user_id,
|
"user_name": user_id,
|
||||||
),
|
},
|
||||||
dict(
|
{
|
||||||
access_token=access_token,
|
"access_token": access_token,
|
||||||
kind=kind,
|
"kind": kind,
|
||||||
app_display_name=app_display_name,
|
"app_display_name": app_display_name,
|
||||||
device_display_name=device_display_name,
|
"device_display_name": device_display_name,
|
||||||
ts=pushkey_ts,
|
"ts": pushkey_ts,
|
||||||
lang=lang,
|
"lang": lang,
|
||||||
data=encode_canonical_json(data),
|
"data": encode_canonical_json(data),
|
||||||
last_stream_ordering=last_stream_ordering,
|
"last_stream_ordering": last_stream_ordering,
|
||||||
profile_tag=profile_tag,
|
"profile_tag": profile_tag,
|
||||||
id=stream_id,
|
"id": stream_id,
|
||||||
),
|
},
|
||||||
)
|
)
|
||||||
defer.returnValue((yield self.runInteraction("add_pusher", f)))
|
defer.returnValue((yield self.runInteraction("add_pusher", f)))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue