@@ -346,7 +346,7 @@ func (r *mutationResolver) SchedulePatch(ctx context.Context, patchID string, co
346
346
// AttachProjectToNewRepo is the resolver for the attachProjectToNewRepo field.
347
347
func (r * mutationResolver ) AttachProjectToNewRepo (ctx context.Context , project MoveProjectInput ) (* restModel.APIProjectRef , error ) {
348
348
usr := mustHaveUser (ctx )
349
- pRef , err := data .FindProjectById (project .ProjectID , false , false )
349
+ pRef , err := data .FindProjectById (ctx , project .ProjectID , false , false )
350
350
if err != nil {
351
351
return nil , InternalServerError .Send (ctx , fmt .Sprintf ("fetching project '%s': %s" , project .ProjectID , err .Error ()))
352
352
}
@@ -370,7 +370,7 @@ func (r *mutationResolver) AttachProjectToNewRepo(ctx context.Context, project M
370
370
// AttachProjectToRepo is the resolver for the attachProjectToRepo field.
371
371
func (r * mutationResolver ) AttachProjectToRepo (ctx context.Context , projectID string ) (* restModel.APIProjectRef , error ) {
372
372
usr := mustHaveUser (ctx )
373
- pRef , err := data .FindProjectById (projectID , false , false )
373
+ pRef , err := data .FindProjectById (ctx , projectID , false , false )
374
374
if err != nil {
375
375
return nil , InternalServerError .Send (ctx , fmt .Sprintf ("fetching project '%s': %s" , projectID , err .Error ()))
376
376
}
@@ -519,7 +519,7 @@ func (r *mutationResolver) DeleteProject(ctx context.Context, projectID string)
519
519
// DetachProjectFromRepo is the resolver for the detachProjectFromRepo field.
520
520
func (r * mutationResolver ) DetachProjectFromRepo (ctx context.Context , projectID string ) (* restModel.APIProjectRef , error ) {
521
521
usr := mustHaveUser (ctx )
522
- pRef , err := data .FindProjectById (projectID , false , false )
522
+ pRef , err := data .FindProjectById (ctx , projectID , false , false )
523
523
if err != nil {
524
524
return nil , InternalServerError .Send (ctx , fmt .Sprintf ("fetching project '%s': %s" , projectID , err .Error ()))
525
525
}
@@ -597,7 +597,7 @@ func (r *mutationResolver) SetLastRevision(ctx context.Context, opts SetLastRevi
597
597
return nil , InternalServerError .Send (ctx , fmt .Sprintf ("updating last revision for '%s': %s" , opts .ProjectIdentifier , err .Error ()))
598
598
}
599
599
600
- if err = project .SetRepotrackerError (& model.RepositoryErrorDetails {}); err != nil {
600
+ if err = project .SetRepotrackerError (ctx , & model.RepositoryErrorDetails {}); err != nil {
601
601
return nil , InternalServerError .Send (ctx , fmt .Sprintf ("clearing repotracker error for '%s': %s" , opts .ProjectIdentifier , err .Error ()))
602
602
}
603
603
@@ -1188,7 +1188,7 @@ func (r *mutationResolver) SaveSubscription(ctx context.Context, subscription re
1188
1188
return false , ResourceNotFound .Send (ctx , fmt .Sprintf ("version '%s' not found" , id ))
1189
1189
}
1190
1190
case "project" :
1191
- p , projectErr := data .FindProjectById (id , false , false )
1191
+ p , projectErr := data .FindProjectById (ctx , id , false , false )
1192
1192
if projectErr != nil {
1193
1193
return false , InternalServerError .Send (ctx , fmt .Sprintf ("fetching project '%s': %s" , id , projectErr .Error ()))
1194
1194
}
0 commit comments