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)
|
team = ForeignKeyField(Team)
|
||||||
|
|
||||||
transaction_id = CharField()
|
transaction_id = CharField()
|
||||||
last_updated = DateTimeField(default=datetime.now, index=True)
|
last_updated = DateTimeField(null=True, index=True)
|
||||||
service = ForeignKeyField(LoginService)
|
service = ForeignKeyField(LoginService)
|
||||||
config = JSONField()
|
config = JSONField()
|
||||||
|
|
||||||
|
|
|
@ -43,7 +43,8 @@
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Last Updated:</td>
|
<td>Last Updated:</td>
|
||||||
<td><span am-time-ago="syncInfo.last_updated"></span> at {{ syncInfo.last_updated | amDateFormat:'dddd, MMMM Do YYYY, h:mm:ss a' }}</td>
|
<td ng-if="syncInfo.last_updated"><span am-time-ago="syncInfo.last_updated"></span> at {{ syncInfo.last_updated | amDateFormat:'dddd, MMMM Do YYYY, h:mm:ss a' }}</td>
|
||||||
|
<td ng-if="!syncInfo.last_updated">Never</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
|
Reference in a new issue