entc/gen: restructure hooks execution (#741)

Closed #739
This commit is contained in:
Ariel Mashraki
2020-09-09 10:41:17 +03:00
committed by GitHub
parent 3a2c897143
commit b4b4fa95d7
136 changed files with 2248 additions and 1081 deletions

View File

@@ -115,7 +115,6 @@ func (nu *NodeUpdate) ClearNext() *NodeUpdate {
// Save executes the query and returns the number of rows/vertices matched by this operation.
func (nu *NodeUpdate) Save(ctx context.Context) (int, error) {
var (
err error
affected int
@@ -375,7 +374,6 @@ func (nuo *NodeUpdateOne) ClearNext() *NodeUpdateOne {
// Save executes the query and returns the updated entity.
func (nuo *NodeUpdateOne) Save(ctx context.Context) (*Node, error) {
var (
err error
node *Node