Final Improvement for CV Editor #3
All checks were successful
Neutral/pipeline/head This commit looks good

This commit is contained in:
CICD - Pipeline 2023-03-29 18:59:58 +02:00
parent ee51c4fe8a
commit 43bf4c0baa

View File

@ -170,11 +170,11 @@ router.post("/", function(req, res, next) {
if(fs.existsSync(projectFolder)) { if(fs.existsSync(projectFolder)) {
image.mv(projectFolder + req.headers.uploadforproject + ".png", (error) => { image.mv(projectFolder + req.headers.uploadforproject + ".jpg", (error) => {
if(error) { if(error) {
res.send({"result":"ERROR"}) res.send({"result":"ERROR"})
console.log(err) console.log(error)
} else { } else {
@ -187,7 +187,7 @@ router.post("/", function(req, res, next) {
const mdtestfolder = "../MD_TEST/project/image/" const mdtestfolder = "../MD_TEST/project/image/"
image.mv(mdtestfolder + req.headers.uploadforproject + ".png", (error) => { image.mv(mdtestfolder + req.headers.uploadforproject + ".jpg", (error) => {
if(error) { if(error) {
res.send({"result":"ERROR"}) res.send({"result":"ERROR"})