Skip to content

Commit

Permalink
Swap order
Browse files Browse the repository at this point in the history
  • Loading branch information
ledyba committed May 10, 2022
1 parent 5fa7681 commit 67e0205
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/controller/both/EntityController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export default class EntityController {
.sendFile(relativePath, basePath);
break;
case 'medium': {
const meta = await fileTypeFromFile(path.join(relativePath, basePath));
const meta = await fileTypeFromFile(path.join(basePath, relativePath));
if(meta === undefined || meta.mime === undefined) {
reply
.code(500)
Expand Down

0 comments on commit 67e0205

Please sign in to comment.