(orgId: string, _: string = '', totalSize: number, usageCacheManager?: UsageCacheManager)
| 146 | |
| 147 | // Storage does not renew per month nor do we store the total size in database, so we just store the total size in cache |
| 148 | export const updateStorageUsage = (orgId: string, _: string = '', totalSize: number, usageCacheManager?: UsageCacheManager) => { |
| 149 | if (!usageCacheManager) return |
| 150 | usageCacheManager.set(`storage:${orgId}`, totalSize) |
| 151 | } |
| 152 | |
| 153 | export const checkStorage = async (orgId: string, subscriptionId: string, usageCacheManager: UsageCacheManager) => { |
| 154 | if (!usageCacheManager || !subscriptionId) return |
no test coverage detected