mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 10:06:05 -04:00
pushers table requires a unique id.
This commit is contained in:
parent
806f380a8b
commit
ed26e4012b
2 changed files with 11 additions and 3 deletions
|
@ -99,6 +99,7 @@ class PusherStore(SQLBaseStore):
|
|||
app_display_name, device_display_name,
|
||||
pushkey, pushkey_ts, lang, data):
|
||||
try:
|
||||
next_id = self._pushers_id_gen.get_next()
|
||||
yield self._simple_upsert(
|
||||
PushersTable.table_name,
|
||||
dict(
|
||||
|
@ -115,6 +116,9 @@ class PusherStore(SQLBaseStore):
|
|||
lang=lang,
|
||||
data=data
|
||||
),
|
||||
insertion_values=dict(
|
||||
id=next_id,
|
||||
),
|
||||
desc="add_pusher",
|
||||
)
|
||||
except Exception as e:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue