🐛修复不可更改服务端密钥
All checks were successful
continuous-integration/drone/tag Build is passing

This commit is contained in:
coward 2024-06-07 11:59:44 +08:00
parent 0d28bd3445
commit 97e6e80d5a

View File

@ -59,6 +59,8 @@ func (r server) Update(p param.SaveServer) (err error) {
"post_up_script": p.PostUpScript, "post_up_script": p.PostUpScript,
"pre_down_script": p.PreDownScript, "pre_down_script": p.PreDownScript,
"post_down_script": p.PostDownScript, "post_down_script": p.PostDownScript,
"private_key": p.PrivateKey,
"public_key": p.PublicKey,
} }
return r.Model(&entity.Server{}).Where("id = ?", p.Id).Updates(&update).Error return r.Model(&entity.Server{}).Where("id = ?", p.Id).Updates(&update).Error
} }