2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 04:22:33 +08:00

feat: 证书支持同时部署多个网站

This commit is contained in:
耗子
2024-10-27 01:46:58 +08:00
parent bd6496c1cb
commit cf5f7bd866
5 changed files with 30 additions and 34 deletions

View File

@@ -81,7 +81,7 @@ func (r *sshRepo) Update(req *request.SSHUpdate) error {
Remark: req.Remark,
}
return app.Orm.Model(ssh).Updates(ssh).Error
return app.Orm.Model(ssh).Where("id = ?", req.ID).Select("*").Updates(ssh).Error
}
func (r *sshRepo) Delete(id uint) error {