Skip to content

Commit

Permalink
Update collections when WACZ is added directly on upload
Browse files Browse the repository at this point in the history
  • Loading branch information
tw4l committed Jan 30, 2025
1 parent b0aebb5 commit 381b616
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions backend/btrixcloud/uploads.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 381b616

Please sign in to comment.