Add type field

This commit is contained in:
2026-01-04 15:21:03 +01:00
parent 2d657aaa88
commit 03de58bd51
4 changed files with 35 additions and 15 deletions

View File

@@ -35,7 +35,8 @@ class MongoService:
except Exception as e:
logger.log_info(e)
def find_by_date(self, collection: str, filters: dict = None, timestamp_field: str = "created_at",
def find_by_date(self, collection: str,
filters: dict = None, timestamp_field: str = "created_at",
start_time: int = None, end_time: int = None):
try:
collection = self._db[collection]