Skip to content

Commit 93c99db

Browse files
committed
Fix positional operator in storage ref update
1 parent d1c8211 commit 93c99db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/btrixcloud/orgs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ async def add_or_remove_file_replica_storage_refs(
500500

501501
await self.crawls_db.update_many(
502502
{"oid": org.id},
503-
{verb: {"files.$.replicas": dict(storage_ref)}},
503+
{verb: {"files.$[].replicas": dict(storage_ref)}},
504504
)
505505

506506
await self.profiles_db.update_many(

0 commit comments

Comments
 (0)