Skip to content

Commit

Permalink
fix(connect): add missing fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
TillaTheHun0 committed Aug 31, 2022
1 parent 39c3e73 commit 751bd1b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/connect/deno/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ export function connect(
signedUrl: (name, options) =>
Promise.resolve(h)
.then(storage.signedUrl(name, options))
.then(fetch)
.then(handleResponse),
remove: (name) =>
Promise.resolve(h)
Expand Down
4 changes: 2 additions & 2 deletions packages/connect/deno/services/storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ export const download =

export const signedUrl =
(name: string, options: StorageSignedUrlOptions) =>
(hyper: HyperRequestFunction) =>
hyper({
(h: HyperRequestFunction) =>
h({
service,
resource: name,
method: options.type === "download" ? Method.GET : Method.POST,
Expand Down

0 comments on commit 751bd1b

Please sign in to comment.