Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion internal/functions/deploy/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,8 @@ Enter your project ref: `, utils.GetSupabaseDashboardURL())
defer resp.Body.Close()

body, err := io.ReadAll(resp.Body)
if resp.StatusCode != http.StatusOK {
// TODO: remove the StatusOK case after 2022-08-20
if resp.StatusCode != http.StatusCreated && resp.StatusCode != http.StatusOK {
if err != nil {
return fmt.Errorf("Failed to create a new Function on the Supabase project: %w", err)
}
Expand Down
1 change: 1 addition & 0 deletions internal/projects/create/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ func Run(params RequestParam, fsys afero.Fs) error {
}
defer resp.Body.Close()

// TODO: remove the StatusOK case after 2022-08-20
if resp.StatusCode != http.StatusOK && resp.StatusCode != http.StatusCreated {
body, err := io.ReadAll(resp.Body)
if err != nil {
Expand Down