From d2a5640c3a7df231707ab75448671c791b9237b1 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Wed, 25 Nov 2020 20:52:57 +0000 Subject: [PATCH] Revert "sharefile: fix backend due to API swapping integers for strings" The API seems to have reverted to what it was before This reverts commit 095c7bd801a8ef01bb4a9c792340fa3c0a302fe8. --- backend/sharefile/api/types.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/sharefile/api/types.go b/backend/sharefile/api/types.go index 989a33fdd..282087bf3 100644 --- a/backend/sharefile/api/types.go +++ b/backend/sharefile/api/types.go @@ -106,7 +106,7 @@ type UploadSpecification struct { type UploadFinishResponse struct { Error bool `json:"error"` ErrorMessage string `json:"errorMessage"` - ErrorCode int `json:"errorCode,string"` + ErrorCode int `json:"errorCode"` Value []struct { UploadID string `json:"uploadid"` ParentID string `json:"parentid"` @@ -114,7 +114,7 @@ type UploadFinishResponse struct { StreamID string `json:"streamid"` FileName string `json:"filename"` DisplayName string `json:"displayname"` - Size int `json:"size,string"` + Size int `json:"size"` Md5 string `json:"md5"` } `json:"value"` }