From a108f5e2127ca6c895cc292e91ad1eab6765edaa Mon Sep 17 00:00:00 2001 From: CorrectRoadH Date: Fri, 30 Jun 2023 23:50:55 +0800 Subject: [PATCH] fix: ignore internalpath field when creating resource (#1868) * fix/to_valid_token * eslint * revert * fix/invalid_internalpath_file_upload --- api/resource.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/resource.go b/api/resource.go index 749c9953..bf9688dc 100644 --- a/api/resource.go +++ b/api/resource.go @@ -11,7 +11,7 @@ type Resource struct { // Domain specific fields Filename string `json:"filename"` Blob []byte `json:"-"` - InternalPath string `json:"internalPath"` + InternalPath string `json:"-"` ExternalLink string `json:"externalLink"` Type string `json:"type"` Size int64 `json:"size"`