Skip to content

Commit

Permalink
Fix files being uploaded with non-unique names
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-va committed Oct 22, 2024
1 parent 18c3c29 commit 8f17cc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/server-asset-sg/src/features/files/file.repo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export class FileRepo implements CreateRepo<AssetFile, CreateFileData>, DeleteRe
processor: data.user.email,
},
});
const result = await putFile(data.name, data.content, data.mediaType)();
const result = await putFile(name, data.content, data.mediaType)();
if (E.isLeft(result)) {
throw result.left;
}
Expand Down

0 comments on commit 8f17cc7

Please sign in to comment.