|
|
@@ -1022,11 +1022,15 @@ class ManagementService(Service):
|
|
|
}
|
|
|
|
|
|
max_documents = await self.get_user_max_documents(user_id)
|
|
|
- used_documents = (
|
|
|
+ used_documents = 0
|
|
|
+
|
|
|
+ '''
|
|
|
+ (
|
|
|
await self.providers.database.documents_handler.get_documents_overview(
|
|
|
limit=1, offset=0, filter_user_ids=[user_id]
|
|
|
)
|
|
|
)["total_entries"]
|
|
|
+ '''
|
|
|
max_chunks = await self.get_user_max_chunks(user_id)
|
|
|
used_chunks = 0
|
|
|
|
|
|
@@ -1039,12 +1043,15 @@ class ManagementService(Service):
|
|
|
'''
|
|
|
|
|
|
max_collections = await self.get_user_max_collections(user_id)
|
|
|
- used_collections: int = ( # type: ignore
|
|
|
+ used_collections: int = 0
|
|
|
+ '''
|
|
|
+ ( # type: ignore
|
|
|
await self.providers.database.collections_handler.get_collections_overview(
|
|
|
limit=1, offset=0, filter_user_ids=[user_id]
|
|
|
)
|
|
|
)["total_entries"]
|
|
|
-
|
|
|
+ '''
|
|
|
+
|
|
|
storage_limits = {
|
|
|
"chunks": {
|
|
|
"limit": max_chunks,
|