diff --git a/dags/hivemind_etl_helpers/src/utils/modules/modules_base.py b/dags/hivemind_etl_helpers/src/utils/modules/modules_base.py index 5b2197f6..9829cef0 100644 --- a/dags/hivemind_etl_helpers/src/utils/modules/modules_base.py +++ b/dags/hivemind_etl_helpers/src/utils/modules/modules_base.py @@ -86,7 +86,7 @@ def get_token(self, platform_id: ObjectId, token_type: str) -> str: { "token": 1, }, - sort=[("createdAt", 1)], + sort=[("createdAt", -1)], ) if token_doc is None: raise ValueError(