fix: fix the problem of link error (#923)

This commit is contained in:
q1anx1 2022-07-28 21:52:10 +08:00 committed by GitHub
parent 8865244262
commit 3dd56195d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -106,6 +106,10 @@ func setUserProperty(user *User, field string, value string) {
if value == "" { if value == "" {
delete(user.Properties, field) delete(user.Properties, field)
} else { } else {
if user.Properties == nil {
user.Properties = make(map[string]string)
}
user.Properties[field] = value user.Properties[field] = value
} }
} }