Aug 27 - Fixed inspection lost photos recovery
This commit is contained in:
@@ -184,7 +184,8 @@ enum InspectionPDFGenerator {
|
||||
group.addTask {
|
||||
if val.hasPrefix("local://") {
|
||||
let path = String(val.dropFirst("local://".count))
|
||||
guard let raw = UIImage(contentsOfFile: path) else { return (fid, nil) }
|
||||
guard let live = PhotoStore.resolve(path),
|
||||
let raw = UIImage(contentsOfFile: live) else { return (fid, nil) }
|
||||
return (fid, compress(raw))
|
||||
} else if val.hasPrefix("uploads/") {
|
||||
guard let url = URL(string: "\(ServerConfig.current)/static/\(val)")
|
||||
|
||||
Reference in New Issue
Block a user