Skip to content

Commit

Permalink
Merge pull request #315 from swisstopo/fix/uploaded-file-name
Browse files Browse the repository at this point in the history
Fix files being uploaded with non-unique names
  • Loading branch information
daniel-va authored Oct 23, 2024
2 parents 18c3c29 + 8f17cc7 commit c0b8cdd
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 c0b8cdd

Please sign in to comment.