Skip to content

Commit c4bfa46

Browse files
authored
Merge pull request #159 from supabase/fix/return-value-create-update-oject
fix: remove projectref returned from upload and update object
2 parents 63c9d0a + 2a55d74 commit c4bfa46

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/lib/storage/StorageFileApi.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,9 @@ export class StorageFileApi {
5555
})
5656

5757
if (res.ok) {
58-
const data = await res.json()
59-
return { data, error: null }
58+
// const data = await res.json()
59+
// temporary fix till backend is updated to the latest storage-api version
60+
return { data: { Key: _path }, error: null }
6061
} else {
6162
const error = await res.json()
6263
return { data: null, error }
@@ -95,8 +96,9 @@ export class StorageFileApi {
9596
})
9697

9798
if (res.ok) {
98-
const data = await res.json()
99-
return { data, error: null }
99+
// const data = await res.json()
100+
// temporary fix till backend is updated to the latest storage-api version
101+
return { data: { Key: _path }, error: null }
100102
} else {
101103
const error = await res.json()
102104
return { data: null, error }

0 commit comments

Comments
 (0)