Skip to content

Commit

Permalink
fix: missing release dir
Browse files Browse the repository at this point in the history
  • Loading branch information
gempain committed Mar 23, 2021
1 parent c044213 commit d7f8672
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/entities/sites/handlers/releases/upload-release.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@ async function handler(req: Request, res: Response): Promise<void> {
};

// move extracted files to final destination
await promises.rename(extractPath, getReleaseDir(release));
const releaseDir = getReleaseDir(release);
await promises.mkdir(releaseDir, { recursive: true });
await promises.rename(extractPath, releaseDir);

await Releases().insertOne(release);

Expand Down

0 comments on commit d7f8672

Please sign in to comment.