Skip to content

Commit

Permalink
update gets to parser asset, to use id rather than name as input
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderBrandborg committed Nov 6, 2020
1 parent c2302d2 commit 638d4ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/parsers.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func (p *Parsers) Get(reposistoryName string, parserName string) (*Parser, error
SourceCode string
TestData []string
TagFields []string
} `graphql:"parser(name: $parserName)"`
} `graphql:"parser(id: $parserName)"`
} `graphql:"repository(name: $repositoryName)"`
}

Expand Down Expand Up @@ -164,7 +164,7 @@ func (p *Parsers) Export(reposistoryName string, parserName string) (string, err
Repository struct {
Parser struct {
YamlTemplate string
} `graphql:"parser(name: $parserName)"`
} `graphql:"parser(id: $parserName)"`
} `graphql:"repository(name: $repositoryName)"`
}

Expand Down

0 comments on commit 638d4ff

Please sign in to comment.