mirror of
https://github.com/element-hq/synapse.git
synced 2024-12-19 17:56:19 +03:00
Fix logic error.
`absolute_fields` being None shouldn't preclude completion of a current stats row. Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
This commit is contained in:
parent
44d3c2e80b
commit
10c1a233f9
1 changed files with 2 additions and 1 deletions
|
@ -430,7 +430,8 @@ class StatsStore(StateDeltasStore):
|
|||
|
||||
if absolute_fields is None:
|
||||
absolute_fields = {}
|
||||
elif complete_with_stream_id is not None:
|
||||
|
||||
if complete_with_stream_id is not None:
|
||||
absolute_fields = absolute_fields.copy()
|
||||
absolute_fields["completed_delta_stream_id"] = complete_with_stream_id
|
||||
self.get_earliest_token_for_stats.invalidate(stats_type, stats_id)
|
||||
|
|
Loading…
Reference in a new issue