fix saving diff collection
This commit is contained in:
parent
7d810fc71c
commit
e40e3fe776
|
@ -305,7 +305,9 @@ func Save{{ ctx.s.name }}CollectionDiff(ctx context.Context, dbe metadb.Execer,
|
|||
queryBuilder.WriteString(builder.update.String())
|
||||
|
||||
_, saveErr := dbe.ExecContext(ctx, queryBuilder.String(), builder.rawValues...)
|
||||
return errors.Wrap(saveErr, queryBuilder.String())
|
||||
if saveErr != nil {
|
||||
return errors.Wrap(saveErr, queryBuilder.String())
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
|
|
Loading…
Reference in New Issue