mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-13 03:13:47 +00:00
refract: simpler upload
- also reverting deleting the file that is uploaded
This commit is contained in:
@@ -115,6 +115,9 @@ const upload = async (file, req, res) => {
|
||||
const rawdata = fs.readFileSync(file);
|
||||
const uploadedJson = JSON.parse(rawdata);
|
||||
|
||||
// delete file
|
||||
deleteFile(file);
|
||||
|
||||
// check version
|
||||
if (uploadedJson.settings.version === 1) parsev1(uploadedJson);
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user