From d716e456f46bad2aac142d1b4286026e0648df3d Mon Sep 17 00:00:00 2001 From: 2BFL <1@linux.com> Date: Mon, 15 Jun 2020 12:28:35 +0800 Subject: [PATCH] fix broken url (#3053) --- finisher_api.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/finisher_api.go b/finisher_api.go index 032c3059..73e42508 100644 --- a/finisher_api.go +++ b/finisher_api.go @@ -216,7 +216,7 @@ func (db *DB) FirstOrCreate(dest interface{}, conds ...interface{}) (tx *DB) { return db } -// Update update attributes with callbacks, refer: https://jinzhu.github.io/gorm/crud.html#update +// Update update attributes with callbacks, refer: https://gorm.io/docs/update.html#Update-Changed-Fields func (db *DB) Update(column string, value interface{}) (tx *DB) { tx = db.getInstance() tx.Statement.Dest = map[string]interface{}{column: value} @@ -224,7 +224,7 @@ func (db *DB) Update(column string, value interface{}) (tx *DB) { return } -// Updates update attributes with callbacks, refer: https://jinzhu.github.io/gorm/crud.html#update +// Updates update attributes with callbacks, refer: https://gorm.io/docs/update.html#Update-Changed-Fields func (db *DB) Updates(values interface{}) (tx *DB) { tx = db.getInstance() tx.Statement.Dest = values