Skip to content

Commit

Permalink
fix bug that img paramter is not parsed when uploading project (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
NingW101 authored Dec 5, 2023
1 parent 08c2751 commit f32b797
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/create_project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export async function handleUploadProject(req: any, res: any) {
const projectDesc = String(fields.projectDesc);
const projectIsLib = String(fields.projectIsLib) === "true" ? true : false;
const projectDependencies = JSON.parse(String(fields.projectDependencies));
const projImg = String(fields.img);
const projImg = JSON.parse(String(fields.img));

/* get files details from `files`*/
const fileFullName = String(files.file[0].originalFilename);
Expand Down

0 comments on commit f32b797

Please sign in to comment.