KamoCRM

Read the bulk-export and exchange-document sweeps instead of reporting 0

Fixkamo-shared-library
Shipped
October 14, 2026 at 4:09 PM UTC
Author
Kamo
Commit
3eda4b5

OrgObjectStorageSweep writes BULK_EXPORTS and EXCHANGE_DOCUMENTS rows into object_storage_days, but OrgStorageAggregator only read that table for BRANDING and DOCS_WORKSPACE; a `default -> imaging` arm answered both domains with ZERO in current() and addedBetween(), and lifetime() sent them (and EVENT_SOUNDS) to the imaging map, which never holds them. - current/addedBetween: BULK_EXPORTS and EXCHANGE_DOCUMENTS join the object_storage_days arm. - lifetime: an exhaustive switch. The swept domains never delete, so lifetime = current; EVENT_SOUNDS reads its table without the isActive filter (soft delete). - No `default` arm in any of the three switches, so a new StorageDomain without an arm fails to compile. - **************** every domain issues a query for every figure, every non-imaging domain reads a table other than imgs, and every swept domain reads ObjectStorageDay.

All changes

Like what you see shipping?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing