use files not paths

This commit is contained in:
Dane Everitt 2020-07-11 13:28:17 -07:00
parent daf401e326
commit 2cef055ff2
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53

View File

@ -195,7 +195,7 @@ func postServerCompressFiles(c *gin.Context) {
var data struct {
RootPath string `json:"root"`
Paths []string `json:"paths"`
Files []string `json:"files"`
}
if err := c.BindJSON(&data); err != nil {
@ -209,7 +209,7 @@ func postServerCompressFiles(c *gin.Context) {
return
}
f, err := s.Filesystem.CompressFiles(data.RootPath, data.Paths)
f, err := s.Filesystem.CompressFiles(data.RootPath, data.Files)
if err != nil {
TrackedServerError(err, s).AbortWithServerError(c)
return