fix
This commit is contained in:
parent
58e2068170
commit
bd1b6ee23e
|
@ -65,7 +65,7 @@ func InheritGuestIdResource(tx *gorm.DB, userId, guestId int64, afterDo func(txR
|
|||
if guestId != 0 {
|
||||
// 继承guest_id的资源表
|
||||
err = txRes.
|
||||
Where("guest_id = ? and module != 'clear' and module != 'temp'", guestId).
|
||||
Where("guest_id = ? and source != 'temp'", guestId).
|
||||
UpdateColumn("user_id", userId).Error
|
||||
if err != nil && err != gorm.ErrRecordNotFound {
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user