auth service up running
This commit is contained in:
@@ -13,8 +13,8 @@ def validate_timestamp(doc):
|
||||
"""Validate and fix timestamp fields in MongoDB documents"""
|
||||
if not doc:
|
||||
return doc
|
||||
|
||||
timestamp_fields = ['modified_at', 'created_at', 'accessed_at', 'timestamp']
|
||||
|
||||
timestamp_fields = ["modified_at", "created_at", "accessed_at", "timestamp"]
|
||||
for field in timestamp_fields:
|
||||
if field in doc and not isinstance(doc[field], (int, float)):
|
||||
# Convert to proper timestamp if it's not already
|
||||
|
||||
Reference in New Issue
Block a user