From 6da3522499322d1cbeaee91dc7ebbd49ff59f2e2 Mon Sep 17 00:00:00 2001 From: albertony <12441419+albertony@users.noreply.github.com> Date: Sun, 24 Apr 2022 14:46:46 +0200 Subject: [PATCH] jottacloud: minor cleanup of upload response The UploadResponse type included several properties that are no longer returned by Jottacloud, and the backend implementation did not use them anyway. --- backend/jottacloud/api/types.go | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/backend/jottacloud/api/types.go b/backend/jottacloud/api/types.go index db1e22aa6..ada266c8a 100644 --- a/backend/jottacloud/api/types.go +++ b/backend/jottacloud/api/types.go @@ -122,16 +122,11 @@ type AllocateFileResponse struct { // UploadResponse after an upload type UploadResponse struct { - Name string `json:"name"` - Path string `json:"path"` - Kind string `json:"kind"` - ContentID string `json:"content_id"` - Bytes int64 `json:"bytes"` - Md5 string `json:"md5"` - Created int64 `json:"created"` - Modified int64 `json:"modified"` - Deleted interface{} `json:"deleted"` - Mime string `json:"mime"` + Path string `json:"path"` + ContentID string `json:"content_id"` + Bytes int64 `json:"bytes"` + Md5 string `json:"md5"` + Modified int64 `json:"modified"` } // DeviceRegistrationResponse is the response to registering a device