mirror of
https://gitee.com/gitea/gitea
synced 2025-11-12 12:30:25 +08:00
Replace deprecated Id method with ID (#2655)
This commit is contained in:
@@ -93,7 +93,7 @@ func Notices(page, pageSize int) ([]*Notice, error) {
|
||||
|
||||
// DeleteNotice deletes a system notice by given ID.
|
||||
func DeleteNotice(id int64) error {
|
||||
_, err := x.Id(id).Delete(new(Notice))
|
||||
_, err := x.ID(id).Delete(new(Notice))
|
||||
return err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user