Fixed double logging of UPDATE and DELETE commands.

This commit is contained in:
unknown 2014-02-19 14:51:14 -08:00
parent 2c33502503
commit dfb75dc79d
2 changed files with 0 additions and 4 deletions

View File

@ -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(

View File

@ -41,8 +41,6 @@ func UpdateTimeStampWhenUpdate(scope *Scope) {
}
func Update(scope *Scope) {
defer scope.Trace(time.Now())
if !scope.HasError() {
var sqls []string