mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 11:26:09 -04:00
Check that somethign has happend before running the selects
This commit is contained in:
parent
71df327190
commit
871357d539
3 changed files with 14 additions and 2 deletions
|
@ -106,6 +106,9 @@ class PusherStore(SQLBaseStore):
|
|||
return self._pushers_id_gen.get_current_token()
|
||||
|
||||
def get_all_updated_pushers(self, last_id, current_id, limit):
|
||||
if last_id == current_id:
|
||||
return defer.succeed(([], []))
|
||||
|
||||
def get_all_updated_pushers_txn(txn):
|
||||
sql = (
|
||||
"SELECT id, user_name, access_token, profile_tag, kind,"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue