Skip to content

Commit

Permalink
Update dbt_models_list.go
Browse files Browse the repository at this point in the history
  • Loading branch information
fivetran-aleksandrboldyrev committed Dec 19, 2023
1 parent e0820c5 commit 78c6ff9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dbt/dbt_models_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,17 @@ func (s *DbtModelsListService) Cursor(value string) *DbtModelsListService {
func (s *DbtModelsListService) Do(ctx context.Context) (DbtModelsListResponse, error) {
var response DbtModelsListResponse
var queries map[string]string = nil
if s.cursor != nil || s.limit != nil {
if s.cursor != nil || s.limit != nil || s.projectId != nil {
queries = make(map[string]string)
if s.cursor != nil {
queries["cursor"] = *s.cursor
}
if s.limit != nil {
queries["limit"] = fmt.Sprintf("%v", *s.limit)
}
}
if s.projectId != nil {
queries["project_id"] = *s.projectId
if s.projectId != nil {
queries["project_id"] = *s.projectId
}
}

err := s.HttpService.Do(ctx, "GET", "/dbt/models", nil, queries, 200, &response)
Expand Down

0 comments on commit 78c6ff9

Please sign in to comment.