fever write api [wip]

This commit is contained in:
Nazar Kanaev
2020-10-25 16:29:26 +00:00
parent 40a9773beb
commit b0364087ad
3 changed files with 46 additions and 2 deletions

View File

@@ -358,7 +358,7 @@ func ItemListHandler(rw http.ResponseWriter, req *http.Request) {
})
} else if req.Method == "PUT" {
query := req.URL.Query()
filter := storage.ItemFilter{}
filter := storage.MarkFilter{}
if folderID, err := strconv.ParseInt(query.Get("folder_id"), 10, 64); err == nil {
filter.FolderID = &folderID
}