Skip to content

Commit d0533b3

Browse files
author
Yan Xu
committed
Fix bug
1 parent 1853a8f commit d0533b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

webapp/server/edge-api/controllers/auth-user-project-controller.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ const addOne = async (req, res) => {
6464
fs.writeFileSync(`${projHome}/conf.json`, JSON.stringify(data));
6565

6666
// save uploaded file to project home
67-
const { file } = req.files;
68-
if (file) {
67+
if (req.files) {
68+
const { file } = req.files;
6969
const mvTo = `${projHome}/${file.name}`;
7070
file.mv(`${mvTo}`, err => {
7171
if (err) {

0 commit comments

Comments
 (0)