mirror of
https://github.com/hoernschen/dendrite.git
synced 2024-12-27 07:28:27 +00:00
Use unix not second
This commit is contained in:
parent
85b1631ecf
commit
073972646f
1 changed files with 1 additions and 1 deletions
|
@ -653,7 +653,7 @@ func (a *UserInternalAPI) PerformPusherSet(ctx context.Context, req *api.Perform
|
||||||
return a.DB.RemovePusher(ctx, req.Pusher.AppID, req.Pusher.PushKey, req.Localpart)
|
return a.DB.RemovePusher(ctx, req.Pusher.AppID, req.Pusher.PushKey, req.Localpart)
|
||||||
}
|
}
|
||||||
if req.Pusher.PushKeyTS == 0 {
|
if req.Pusher.PushKeyTS == 0 {
|
||||||
req.Pusher.PushKeyTS = int64(time.Now().Second())
|
req.Pusher.PushKeyTS = int64(time.Now().Unix())
|
||||||
}
|
}
|
||||||
return a.DB.UpsertPusher(ctx, req.Pusher, req.Localpart)
|
return a.DB.UpsertPusher(ctx, req.Pusher, req.Localpart)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue