Fix upsert if else
This commit is contained in:
parent
b3230c2757
commit
0abfe1cba6
1 changed files with 3 additions and 5 deletions
|
@ -127,10 +127,8 @@ func (o *{{$tableNameSingular}}) Upsert(exec boil.Executor, {{if ne .DriverName
|
|||
{{- end}}
|
||||
|
||||
{{if not .NoHooks -}}
|
||||
if err := o.doAfterUpsertHooks(exec); err != nil {
|
||||
return err
|
||||
}
|
||||
{{- end}}
|
||||
|
||||
return o.doAfterUpsertHooks(exec)
|
||||
{{- else -}}
|
||||
return nil
|
||||
{{- end}}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue