Fix new user config

This commit is contained in:
Lucas BEE 2016-11-13 18:41:03 +00:00
parent c9a3fbd90c
commit 226fd89f6a

View File

@ -80,7 +80,7 @@ func (u *User) SetConfig(key string, v interface{}) error {
// NewConfig creates a new empty config
func (u *User) NewConfig() error {
var configMap map[string]*json.RawMessage
configMap := make(map[string]*json.RawMessage)
b, err := json.Marshal(configMap)
if err != nil {
return err