IO-2221 Correct filename for targeting thumbs
This commit is contained in:
@@ -41,7 +41,7 @@ export async function JobsDeleteMedia(req: Request, res: Response) {
|
||||
FolderPaths.Jobs,
|
||||
jobid,
|
||||
FolderPaths.ThumbsSubDir,
|
||||
file.name
|
||||
file.name.replace(/\.[^/.]+$/, ".png")
|
||||
)
|
||||
);
|
||||
}
|
||||
@@ -58,7 +58,7 @@ export async function JobsDeleteMedia(req: Request, res: Response) {
|
||||
jobid,
|
||||
FolderPaths.BillsSubDir,
|
||||
FolderPaths.ThumbsSubDir,
|
||||
file.name
|
||||
file.name.replace(/\.[^/.]+$/, ".png")
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
@@ -59,9 +59,14 @@ export async function JobsMoveMedia(req: Request, res: Response) {
|
||||
FolderPaths.Jobs,
|
||||
from_jobid,
|
||||
FolderPaths.ThumbsSubDir,
|
||||
file
|
||||
file.replace(/\.[^/.]+$/, ".png")
|
||||
),
|
||||
path.join(FolderPaths.Jobs, jobid, FolderPaths.ThumbsSubDir, file)
|
||||
path.join(
|
||||
FolderPaths.Jobs,
|
||||
jobid,
|
||||
FolderPaths.ThumbsSubDir,
|
||||
file.replace(/\.[^/.]+$/, ".png")
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
@@ -85,14 +90,14 @@ export async function JobsMoveMedia(req: Request, res: Response) {
|
||||
from_jobid,
|
||||
FolderPaths.BillsSubDir,
|
||||
FolderPaths.ThumbsSubDir,
|
||||
file
|
||||
file.replace(/\.[^/.]+$/, ".png")
|
||||
),
|
||||
path.join(
|
||||
FolderPaths.Jobs,
|
||||
jobid,
|
||||
FolderPaths.BillsSubDir,
|
||||
FolderPaths.ThumbsSubDir,
|
||||
file
|
||||
file.replace(/\.[^/.]+$/, ".png")
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user