fix: 修复了执行周期更新失败的问题

This commit is contained in:
ssongliu 2023-03-31 17:21:30 +08:00 committed by ssongliu
parent bbe08ed218
commit 1d5797fe68

View File

@ -194,6 +194,7 @@ func (u *CronjobService) Update(id uint, req dto.CronjobUpdate) error {
upMap := make(map[string]interface{})
upMap["entry_id"] = newEntryID
upMap["name"] = req.Name
upMap["spec"] = cronjob.Spec
upMap["script"] = req.Script
upMap["spec_type"] = req.SpecType
upMap["week"] = req.Week