Skip to content

Commit

Permalink
fix(minio): remove random pasted data
Browse files Browse the repository at this point in the history
  • Loading branch information
NuttyShrimp committed Apr 27, 2024
1 parent f129cb5 commit 6a4c68d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/util/minio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const generateFileUUID = async () => {
}

export const storePhoto = async (uuid: string, data: Buffer) => {
await minioClient.putObject(config.minioBucket, `${uuid}.jpgshowPreview`, data, {
await minioClient.putObject(config.minioBucket, `${uuid}.jpg`, data, {
'Content-Type': 'image/jpeg',
});
}
}

0 comments on commit 6a4c68d

Please sign in to comment.