M api/graph/schema.resolvers.go => api/graph/schema.resolvers.go +1 -0
@@ 2,6 2,7 @@ package graph
// This file will be automatically regenerated based on the schema, any resolver implementations
// will be copied through when generating and any unknown code will be moved to the end.
+// Code generated by github.com/99designs/gqlgen version v0.17.29
import (
"bytes"
M api/loaders/middleware.go => api/loaders/middleware.go +1 -1
@@ 119,8 119,8 @@ func fetchUsersByName(ctx context.Context) func(names []string) ([]*model.User,
}
func fetchJobsByID(ctx context.Context) func(ids []int) ([]*model.Job, []error) {
- user := auth.ForContext(ctx)
return func(ids []int) ([]*model.Job, []error) {
+ user := auth.ForContext(ctx)
jobs := make([]*model.Job, len(ids))
if err := database.WithTx(ctx, &sql.TxOptions{
Isolation: 0,