(20250117) Day-end push.

This commit is contained in:
2025-01-17 18:57:46 +05:30
parent 8ab63d036d
commit 4b2cdbee76
7 changed files with 356 additions and 331 deletions
+19
View File
@@ -179,12 +179,30 @@ class CoreAuthTokenModel(BaseModel):
default = None
)
syncAfterTs: AwareDatetime | None = Field(
description = "the time (utc) after which this account becomes eligible for re-sync'ing",
frozen = False,
default = True
)
lastSyncTs: AwareDatetime | None = Field(
description = "the time at which this client's updates were last polled",
frozen = False,
default = None
)
batchId: ObjectId | None = Field(
description = "a batch id assigned when creds are picked for account data sync'ing",
frozen = False,
default = None
)
batchTs: AwareDatetime | None = Field(
description = "the time (utc) at which this record was picked for data sync'ing",
frozen = False,
default = None
)
# ┏┓ ┏•
# ┃ ┏┓┏┓╋┓┏┓
# ┗┛┗┛┛┗┛┗┗┫
@@ -204,6 +222,7 @@ class CoreAuthTokenModel(BaseModel):
@field_validator(
"firstRequestTs",
"lastRequestTs", "firstRefreshTs", "lastRefreshTs",
"batchTs", "lastSyncTs", "syncAfterTs",
mode = "before"
)
def parse_date_time(cls, value):