git.iko.soy/rowtype-yoga/purescript-supabase
on main help sign in
Inline code
commitb5150335dbf9a359197dadbe2b5a0f4908a030c3 authorMark Eibes <mark.eibes@gmail.com> dateMon 20 Mar 2023, 19:52 (4 years ago) parentc1f8f81
1 file changed+2−4
src/Supabase/Storage.purs+2−4
src/Supabase/Storage.purs+2−4
@@ -50,8 +50,7 @@ download :: String -> QueryBuilder -> Aff (SBTypes.Response Blob) -- [TODO] Make
5050download file qb = downloadImpl qb file # Promise.toAffE <#> convert
5151 where
5252 convert { "data": d, error: error } = do
53− let blob = Nullable.toMaybe d
54− { "data": blob, error: Nullable.toMaybe error, status: Nothing }
53+ { "data": Nullable.toMaybe d, error: Nullable.toMaybe error, status: Nothing }
5554
5655foreign import removeImpl :: QueryBuilder -> Array String -> Effect (Promise Foreign)
5756
@@ -64,5 +63,4 @@ createSignedUrl :: String -> Seconds -> QueryBuilder -> Aff (SBTypes.Response {
6463createSignedUrl file expiry qb = createSignedUrlImpl qb file expiry # Promise.toAffE <#> convert
6564 where
6665 convert { "data": d, error: error } = do
67− let blob = Nullable.toMaybe d
68− { "data": blob, error: Nullable.toMaybe error, status: Nothing }
66+ { "data": Nullable.toMaybe d, error: Nullable.toMaybe error, status: Nothing }