Skip to content

Commit

Permalink
fix: wrong method called in project update
Browse files Browse the repository at this point in the history
  • Loading branch information
drstrangelooker committed May 2, 2023
1 parent 7b4a9e2 commit 165630d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/gzr/modules/project.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ def create_project(body)

def update_project(id,body)
begin
return @sdk.project(id,body)&.to_attrs
return @sdk.update_project(id,body)&.to_attrs
rescue LookerSDK::NotFound => e
return nil
rescue LookerSDK::Error => e
say_error "Error running create_project(#{id},#{JSON.pretty_generate(body)})"
say_error "Error running update_project(#{id},#{JSON.pretty_generate(body)})"
say_error e
raise
end
Expand Down

0 comments on commit 165630d

Please sign in to comment.