aboutsummaryrefslogtreecommitdiff
path: root/clientapi/routing/keys.go
diff options
context:
space:
mode:
Diffstat (limited to 'clientapi/routing/keys.go')
-rw-r--r--clientapi/routing/keys.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/clientapi/routing/keys.go b/clientapi/routing/keys.go
index ba03a352..e2233642 100644
--- a/clientapi/routing/keys.go
+++ b/clientapi/routing/keys.go
@@ -38,7 +38,10 @@ func UploadKeys(req *http.Request, keyAPI api.KeyInternalAPI, device *userapi.De
return *resErr
}
- uploadReq := &api.PerformUploadKeysRequest{}
+ uploadReq := &api.PerformUploadKeysRequest{
+ DeviceID: device.ID,
+ UserID: device.UserID,
+ }
if r.DeviceKeys != nil {
uploadReq.DeviceKeys = []api.DeviceKeys{
{