Skip to content

Commit

Permalink
Fix image/msa path for scan upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Nemere committed Nov 4, 2024
1 parent e95c6a2 commit 683845a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/ws/handlers/scan.go
Original file line number Diff line number Diff line change
Expand Up @@ -523,13 +523,13 @@ func processEM(importId string, zipReader *zip.Reader, zippedData []byte, destBu
if p, err := readFromZip(f, localMSAPath); err != nil {
return err
} else {
msas = append(msas, p)
msas = append(msas, path.Base(p))
}
} else if strings.HasSuffix(f.Name, ".jpg") {
if p, err := readFromZip(f, localImagesPath); err != nil {
return err
} else {
images = append(images, p)
images = append(images, path.Base(p))
}
}
}
Expand Down

0 comments on commit 683845a

Please sign in to comment.