Allow nulls in last_updated field to accurately report the last updated time to users for newly sync teams
This commit is contained in:
parent
8ea3977140
commit
94b07e6de9
2 changed files with 3 additions and 2 deletions
|
@ -530,7 +530,7 @@ class TeamSync(BaseModel):
|
|||
team = ForeignKeyField(Team)
|
||||
|
||||
transaction_id = CharField()
|
||||
last_updated = DateTimeField(default=datetime.now, index=True)
|
||||
last_updated = DateTimeField(null=True, index=True)
|
||||
service = ForeignKeyField(LoginService)
|
||||
config = JSONField()
|
||||
|
||||
|
|
Reference in a new issue