mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-02-04 12:40:07 +00:00
disable soft deletion in group api (#10)
* disable soft deletion in group api * remove DeleteAt * remove DeleteAt service
This commit is contained in:
@@ -146,7 +146,7 @@ func updateNotificationGroup(c *gin.Context) (any, error) {
|
||||
if err := tx.Save(&ngDB).Error; err != nil {
|
||||
return err
|
||||
}
|
||||
if err := tx.Delete(&model.NotificationGroupNotification{}, "notification_group_id = ?", id).Error; err != nil {
|
||||
if err := tx.Unscoped().Delete(&model.NotificationGroupNotification{}, "notification_group_id = ?", id).Error; err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
|
||||
@@ -143,7 +143,7 @@ func updateServerGroup(c *gin.Context) (any, error) {
|
||||
if err := tx.Save(&sgDB).Error; err != nil {
|
||||
return err
|
||||
}
|
||||
if err := tx.Delete(&model.ServerGroupServer{}, "server_group_id = ?", id).Error; err != nil {
|
||||
if err := tx.Unscoped().Delete(&model.ServerGroupServer{}, "server_group_id = ?", id).Error; err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user