fix: database - timestamp

This commit is contained in:
Swapnil 2024-01-24 19:22:08 +05:30
parent 1d1c2aac9f
commit 29a39cb633
Signed by: swapnil
GPG Key ID: 58029C48BB100574
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ def get_latest_token():
'access_token': latest_token.access_token,
'refresh_token': latest_token.refresh_token,
'expiration_seconds': latest_token.expiration_seconds,
'timestamp': latest_token.timestamp.isoformat()
'timestamp': int(latest_token.timestamp.timestamp())
}
return jsonify({'token': token_info}), 200
else: