From ec1af7f0afe0ae7363e345c8deeeb625270845c3 Mon Sep 17 00:00:00 2001 From: qqxhb <125290506@qq.com> Date: Wed, 18 Sep 2024 21:03:07 +0800 Subject: [PATCH] fix: Updates method is invalid for tag type hooks --- do.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/do.go b/do.go index aca161a5..0ade288d 100644 --- a/do.go +++ b/do.go @@ -710,7 +710,7 @@ func (d *DO) Updates(value interface{}) (info ResultInfo, err error) { valTyp = rawTyp } - tx := d.db + tx := d.db.Model(d.newResultPointer()) if d.backfillData != nil { tx = tx.Model(d.backfillData) }