Skip to content

Commit

Permalink
Try to fix weird generated error in child patch
Browse files Browse the repository at this point in the history
  • Loading branch information
minnakt committed Apr 3, 2024
1 parent e5a790e commit b13e20e
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 54 deletions.
100 changes: 50 additions & 50 deletions graphql/generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions graphql/query_resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ func (r *queryResolver) ProjectSettings(ctx context.Context, identifier string)
}

// RepoEvents is the resolver for the repoEvents field.
func (r *queryResolver) RepoEvents(ctx context.Context, id *string, limit *int, before *time.Time, repoID *string) (*ProjectEvents, error) {
func (r *queryResolver) RepoEvents(ctx context.Context, repoID *string, id *string, limit *int, before *time.Time) (*ProjectEvents, error) {
// TODO: Remove this temporary workaround.
repoId := util.CoalesceString(utility.FromStringPtr(id), utility.FromStringPtr(repoID))
timestamp := time.Now()
Expand All @@ -511,7 +511,7 @@ func (r *queryResolver) RepoEvents(ctx context.Context, id *string, limit *int,
}

// RepoSettings is the resolver for the repoSettings field.
func (r *queryResolver) RepoSettings(ctx context.Context, id *string, repoID *string) (*restModel.APIProjectSettings, error) {
func (r *queryResolver) RepoSettings(ctx context.Context, repoID *string, id *string) (*restModel.APIProjectSettings, error) {
// TODO: Remove this temporary workaround.
repoId := util.CoalesceString(utility.FromStringPtr(id), utility.FromStringPtr(repoID))
repoRef, err := model.FindOneRepoRef(repoId)
Expand Down
4 changes: 2 additions & 2 deletions graphql/schema/query.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ type Query {
@requireProjectAccess(access: VIEW)
): ProjectEvents!
projectSettings(identifier: String! @requireProjectAccess(access: VIEW)): ProjectSettings!
repoEvents(id: String @deprecated(reason: "use repoId instead"), limit: Int = 0, before: Time, repoId: String @requireProjectAccess(access: VIEW)): ProjectEvents!
repoSettings(id: String @deprecated(reason: "use repoId instead"), repoId: String @requireProjectAccess(access: VIEW)): RepoSettings!
repoEvents(repoId: String @requireProjectAccess(access: VIEW), id: String @deprecated(reason: "use repoId instead"), limit: Int = 0, before: Time): ProjectEvents!
repoSettings(repoId: String @requireProjectAccess(access: VIEW), id: String @deprecated(reason: "use repoId instead")): RepoSettings!
viewableProjectRefs: [GroupedProjects]!

# spawn
Expand Down

0 comments on commit b13e20e

Please sign in to comment.