mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-09-22 16:00:51 +00:00
fix: Fix the problem of failed creation of child node snapshots (#8898)
Refs #8897
This commit is contained in:
@@ -268,11 +268,7 @@ func loadDbConn(snap *snapHelper, targetDir string, req dto.SnapshotCreate) erro
|
||||
_ = taskDB.Where("id = ?", req.TaskID).Delete(&model.Task{}).Error
|
||||
}
|
||||
if !req.WithOperationLog {
|
||||
err = snap.snapCoreDB.Exec("DELETE FROM operation_logs").Error
|
||||
snap.Task.LogWithStatus(i18n.GetMsgByKey("SnapDeleteOperationLog"), err)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
_ = snap.snapCoreDB.Exec("DELETE FROM operation_logs").Error
|
||||
}
|
||||
if !req.WithLoginLog {
|
||||
err = snap.snapCoreDB.Exec("DELETE FROM login_logs").Error
|
||||
|
||||
Reference in New Issue
Block a user