Fixed bug
This commit is contained in:
@@ -48,7 +48,9 @@ router.post("/upload", async (req, res) => {
|
||||
} else {
|
||||
const uploadedFile = req.files.file;
|
||||
|
||||
if (db) {
|
||||
db.close();
|
||||
}
|
||||
fs.copyFile(uploadedFile.tempFilePath, db_conf.path, (error) => {
|
||||
if (error) {
|
||||
logger.error(error);
|
||||
|
||||
Reference in New Issue
Block a user