@@ -17,7 +17,7 @@ func (r *mutationResolver) CreateTag(ctx context.Context, tagName string) (*gene
1717 Name : tagName ,
1818 }
1919
20- resultTag , err := postgres .CreateTag (dbTag , & newCtx , true )
20+ resultTag , err := postgres .CreateTag (newCtx , dbTag , true )
2121 if err != nil {
2222 return nil , err
2323 }
@@ -35,7 +35,7 @@ func (r *mutationResolver) CreateMultipleTags(ctx context.Context, tagNames []st
3535 Name : tagName ,
3636 }
3737
38- resultTag , err := postgres .CreateTag (dbTag , & newCtx , false )
38+ resultTag , err := postgres .CreateTag (newCtx , dbTag , false )
3939 if err != nil {
4040 return nil , err
4141 }
@@ -50,13 +50,13 @@ func (r *mutationResolver) DeleteTag(ctx context.Context, id string) (bool, erro
5050 wrapper , newCtx := WrapMutationTrace (ctx , "deleteTag" )
5151 defer wrapper .end ()
5252
53- dbTag := postgres .GetTagByID (id , & newCtx )
53+ dbTag := postgres .GetTagByID (newCtx , id )
5454
5555 if dbTag == nil {
5656 return false , errors .New ("Tag not found" )
5757 }
5858
59- postgres .Delete (& dbTag , & newCtx )
59+ postgres .Delete (newCtx , & dbTag )
6060
6161 return true , nil
6262}
@@ -65,7 +65,7 @@ func (r *mutationResolver) UpdateTag(ctx context.Context, id string, newName str
6565 wrapper , newCtx := WrapMutationTrace (ctx , "updateTag" )
6666 defer wrapper .end ()
6767
68- dbTag := postgres .GetTagByID (id , & newCtx )
68+ dbTag := postgres .GetTagByID (newCtx , id )
6969
7070 if dbTag == nil {
7171 return nil , errors .New ("Tag not found" )
@@ -78,7 +78,7 @@ func (r *mutationResolver) UpdateTag(ctx context.Context, id string, newName str
7878
7979 SetStringINNOE (& newName , & dbTag .Name )
8080
81- postgres .Save (& dbTag , & newCtx )
81+ postgres .Save (newCtx , & dbTag )
8282
8383 return DBTagToGenerated (dbTag ), nil
8484}
@@ -87,7 +87,7 @@ func (r *queryResolver) GetTag(ctx context.Context, id string) (*generated.Tag,
8787 wrapper , newCtx := WrapQueryTrace (ctx , "getTag_" + id )
8888 defer wrapper .end ()
8989
90- tag := postgres .GetTagByID (id , & newCtx )
90+ tag := postgres .GetTagByID (newCtx , id )
9191
9292 return DBTagToGenerated (tag ), nil
9393}
@@ -97,7 +97,7 @@ func (r *queryResolver) GetTags(ctx context.Context, filter *generated.TagFilter
9797 defer wrapper .end ()
9898
9999 insertFilterDefaults (filter )
100- tags := postgres .GetTags (& newCtx , filter )
100+ tags := postgres .GetTags (newCtx , filter )
101101
102102 return DBTagsToGeneratedSlice (tags ), nil
103103}
0 commit comments