mirror of
https://github.com/element-hq/dendrite.git
synced 2025-09-14 13:22:26 +03:00
code review fixes
This commit is contained in:
parent
17b7677071
commit
8a05a66cd7
9 changed files with 24 additions and 24 deletions
|
@ -116,8 +116,7 @@ func (s *accountsStatements) InsertAccount(
|
|||
localpart string, serverName spec.ServerName,
|
||||
hash, appserviceID string, accountType api.AccountType,
|
||||
) (*api.Account, error) {
|
||||
// TODO: can we replace "UnixNano() / 1M" with "UnixMilli()"?
|
||||
createdTimeMS := time.Now().UnixNano() / 1000000
|
||||
createdTimeMS := spec.AsTimestamp(time.Now())
|
||||
stmt := sqlutil.TxStmt(txn, s.insertAccountStmt)
|
||||
|
||||
var err error
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue