Skip to content

Commit fb485c6

Browse files
committed
more things
1 parent b019948 commit fb485c6

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

app/utils/storage.server.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,6 @@ export async function uploadNoteImage(
4949
return uploadToStorage(file, key)
5050
}
5151

52-
function getImageUrl(imageId: string) {
53-
return `${STORAGE_ENDPOINT}/${STORAGE_BUCKET}/${imageId}`
54-
}
55-
5652
function hmacSha256(key: string | Buffer, message: string) {
5753
const hmac = createHmac('sha256', key)
5854
hmac.update(message)
@@ -89,7 +85,7 @@ function getBaseSignedRequestInfo({
8985
contentType?: string
9086
uploadDate?: string
9187
}) {
92-
const url = getImageUrl(key)
88+
const url = `${STORAGE_ENDPOINT}/${STORAGE_BUCKET}/${key}`
9389
const endpoint = new URL(url)
9490

9591
// Prepare date strings

0 commit comments

Comments
 (0)