mirror of
https://gitee.com/johng/gf
synced 2026-06-07 02:12:11 +08:00
fix invalid UpdatedAt usage in soft deleting feature for package gdb (#2323)
This commit is contained in:
@ -86,7 +86,7 @@ func (m *Model) getSoftFieldNameDeleted(table ...string) (field string) {
|
||||
tableName = m.tablesInit
|
||||
}
|
||||
config := m.db.GetConfig()
|
||||
if config.UpdatedAt != "" {
|
||||
if config.DeletedAt != "" {
|
||||
return m.getSoftFieldName(tableName, []string{config.DeletedAt})
|
||||
}
|
||||
return m.getSoftFieldName(tableName, deletedFiledNames)
|
||||
|
||||
Reference in New Issue
Block a user