mirror of
https://gitcode.com/gitea/gitea.git
synced 2025-05-25 11:07:56 +08:00
fix: delete attachment after remove comment.
This commit is contained in:

committed by
Kim "BKC" Carlbäcker

parent
2831267db1
commit
691fbdf1d3
4
vendor/github.com/go-xorm/xorm/engine.go
generated
vendored
4
vendor/github.com/go-xorm/xorm/engine.go
generated
vendored
@ -573,7 +573,7 @@ func (engine *Engine) Id(id interface{}) *Session {
|
||||
return session.Id(id)
|
||||
}
|
||||
|
||||
// ID mehtod provoide a condition as (id) = ?
|
||||
// ID method provoide a condition as (id) = ?
|
||||
func (engine *Engine) ID(id interface{}) *Session {
|
||||
session := engine.NewSession()
|
||||
session.IsAutoClose = true
|
||||
@ -1599,6 +1599,8 @@ func (engine *Engine) formatTime(tz *time.Location, sqlTypeName string, t time.T
|
||||
return t
|
||||
}
|
||||
if tz != nil {
|
||||
t = t.In(tz)
|
||||
} else {
|
||||
t = engine.TZTime(t)
|
||||
}
|
||||
switch sqlTypeName {
|
||||
|
Reference in New Issue
Block a user