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,
|
FolderPaths.Jobs,
|
||||||
jobid,
|
jobid,
|
||||||
FolderPaths.ThumbsSubDir,
|
FolderPaths.ThumbsSubDir,
|
||||||
file.name
|
file.name.replace(/\.[^/.]+$/, ".png")
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -58,7 +58,7 @@ export async function JobsDeleteMedia(req: Request, res: Response) {
|
|||||||
jobid,
|
jobid,
|
||||||
FolderPaths.BillsSubDir,
|
FolderPaths.BillsSubDir,
|
||||||
FolderPaths.ThumbsSubDir,
|
FolderPaths.ThumbsSubDir,
|
||||||
file.name
|
file.name.replace(/\.[^/.]+$/, ".png")
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -59,9 +59,14 @@ export async function JobsMoveMedia(req: Request, res: Response) {
|
|||||||
FolderPaths.Jobs,
|
FolderPaths.Jobs,
|
||||||
from_jobid,
|
from_jobid,
|
||||||
FolderPaths.ThumbsSubDir,
|
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,
|
from_jobid,
|
||||||
FolderPaths.BillsSubDir,
|
FolderPaths.BillsSubDir,
|
||||||
FolderPaths.ThumbsSubDir,
|
FolderPaths.ThumbsSubDir,
|
||||||
file
|
file.replace(/\.[^/.]+$/, ".png")
|
||||||
),
|
),
|
||||||
path.join(
|
path.join(
|
||||||
FolderPaths.Jobs,
|
FolderPaths.Jobs,
|
||||||
jobid,
|
jobid,
|
||||||
FolderPaths.BillsSubDir,
|
FolderPaths.BillsSubDir,
|
||||||
FolderPaths.ThumbsSubDir,
|
FolderPaths.ThumbsSubDir,
|
||||||
file
|
file.replace(/\.[^/.]+$/, ".png")
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user