fix(userstore): use copy of default preferences

This commit is contained in:
hexxa 2021-11-07 12:09:25 +08:00 committed by Hexxa
parent edcec3698f
commit 769ddb078a
3 changed files with 9 additions and 5 deletions

View file

@ -51,7 +51,6 @@ func (h *SettingsSvc) SetClientCfg(c *gin.Context) {
c.JSON(q.ErrResp(c, 400, err))
return
}
h.deps.Log().Info(req.ClientCfg)
if err = validateClientCfg(req.ClientCfg); err != nil {
c.JSON(q.ErrResp(c, 400, err))