Skip to content

Commit 1a11d37

Browse files
authored
Merge pull request #149 from supabase/feat/createSignedURL-return-type
feat: updates createSignedURL to return full URL
2 parents 490e657 + 50a0282 commit 1a11d37

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/lib/storage/StorageFileApi.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,7 @@ export class StorageFileApi {
145145
{ expiresIn },
146146
{ headers: this.headers }
147147
)
148-
const signedUrl = `${this.url}${data.signedUrl}`
149-
data = { ...data, signedUrl }
148+
data = { signedURL: `${this.url}${data.signedURL}` }
150149
return { data, error: null }
151150
} catch (error) {
152151
return { data: null, error }

0 commit comments

Comments
 (0)