Skip to content

Commit 2278030

Browse files
authored
[core][fix] Use consistent reading when updating the account (#2158)
1 parent 4125af7 commit 2278030

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fixcore/fixcore/report/inspector_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ async def perform_benchmarks(
272272
# store the security score of an account
273273
if account_ids := context.accounts:
274274
async with await db.search_list( # lookup node ids for all given accounts
275-
QueryModel(Query.by("account", P("reported.id").is_in(account_ids)), model)
275+
QueryModel(Query.by("account", P("reported.id").is_in(account_ids)), model), consistent=True
276276
) as crsr:
277277
async for acc in crsr:
278278
if (node_id := value_in_path(acc, NodePath.node_id)) and (

0 commit comments

Comments
 (0)