Vova Tkach 5 years ago
parent
commit
d56b9dd6b2
1 changed files with 1 additions and 0 deletions
  1. 1 0
      engine/wrapper/wrapper.go

+ 1 - 0
engine/wrapper/wrapper.go

@@ -415,6 +415,7 @@ func (this *Wrapper) RemoveProductImageThumbnails(product_id, filename string) e
 	if files, err := filepath.Glob(pattern); err != nil {
 		return err
 	} else {
+		// TODO: select context and don't do that
 		for _, file := range files {
 			if err := os.Remove(file); err != nil {
 				return errors.New(fmt.Sprintf("[upload delete] Thumbnail file (%s) delete error: %s", file, err.Error()))