This commit is contained in:
parent
0d28bd3445
commit
97e6e80d5a
@ -59,6 +59,8 @@ func (r server) Update(p param.SaveServer) (err error) {
|
||||
"post_up_script": p.PostUpScript,
|
||||
"pre_down_script": p.PreDownScript,
|
||||
"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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user