refactor: rename getSignedUrl to getPublicUrl for clarity in storage functions

This commit is contained in:
2026-04-11 20:52:35 -03:00
parent 9d2ce50b26
commit 56a5d77c6c
3 changed files with 3 additions and 4 deletions

View File

@@ -26,7 +26,7 @@ export const uploadFile = wrap(async (file: File) => {
const existsResult = await storage.checkExists(fileKey);
if (existsResult) {
const presignedUrl = await storage.getSignedUrl(fileKey);
const presignedUrl = await storage.getPublicUrl(fileKey);
if (!presignedUrl.ok) {
throw new Error('Failed to retrieve file URL');
}
@@ -48,7 +48,7 @@ export const uploadFile = wrap(async (file: File) => {
throw new Error('Failed to upload file');
}
const presignedUrl = await storage.getSignedUrl(fileKey);
const presignedUrl = await storage.getPublicUrl(fileKey);
if (!presignedUrl.ok) {
throw new Error('Failed to retrieve file URL');
}