From 381b6169740d5a576b2a7812392b5743eae7543d Mon Sep 17 00:00:00 2001 From: Tessa Walsh Date: Thu, 30 Jan 2025 10:53:27 -0500 Subject: [PATCH] Update collections when WACZ is added directly on upload --- backend/btrixcloud/uploads.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/btrixcloud/uploads.py b/backend/btrixcloud/uploads.py index 9f59991eda..b79dec2ede 100644 --- a/backend/btrixcloud/uploads.py +++ b/backend/btrixcloud/uploads.py @@ -202,6 +202,9 @@ async def _create_upload( org.id, file, crawl_id, "upload" ) + if collections: + await self.colls.update_crawl_collections(crawl_id) + return {"id": crawl_id, "added": True, "storageQuotaReached": quota_reached} async def delete_uploads(