Fixed double logging of UPDATE and DELETE commands.
This commit is contained in:
parent
2c33502503
commit
dfb75dc79d
@ -10,8 +10,6 @@ func BeforeDelete(scope *Scope) {
|
||||
}
|
||||
|
||||
func Delete(scope *Scope) {
|
||||
defer scope.Trace(time.Now())
|
||||
|
||||
if !scope.HasError() {
|
||||
if !scope.Search.Unscope && scope.HasColumn("DeletedAt") {
|
||||
scope.Raw(
|
||||
|
@ -41,8 +41,6 @@ func UpdateTimeStampWhenUpdate(scope *Scope) {
|
||||
}
|
||||
|
||||
func Update(scope *Scope) {
|
||||
defer scope.Trace(time.Now())
|
||||
|
||||
if !scope.HasError() {
|
||||
var sqls []string
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user