mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-06 03:16:03 +08:00
chore: Fixed the typo in ProfilePirctureURL attr (#3307)
This commit is contained in:
parent
233589b867
commit
03220fcf11
@ -1935,8 +1935,8 @@ func (aH *APIHandler) editUser(w http.ResponseWriter, r *http.Request) {
|
|||||||
if len(update.Name) > 0 {
|
if len(update.Name) > 0 {
|
||||||
old.Name = update.Name
|
old.Name = update.Name
|
||||||
}
|
}
|
||||||
if len(update.ProfilePirctureURL) > 0 {
|
if len(update.ProfilePictureURL) > 0 {
|
||||||
old.ProfilePirctureURL = update.ProfilePirctureURL
|
old.ProfilePictureURL = update.ProfilePictureURL
|
||||||
}
|
}
|
||||||
|
|
||||||
_, apiErr = dao.DB().EditUser(ctx, &model.User{
|
_, apiErr = dao.DB().EditUser(ctx, &model.User{
|
||||||
@ -1946,7 +1946,7 @@ func (aH *APIHandler) editUser(w http.ResponseWriter, r *http.Request) {
|
|||||||
Email: old.Email,
|
Email: old.Email,
|
||||||
Password: old.Password,
|
Password: old.Password,
|
||||||
CreatedAt: old.CreatedAt,
|
CreatedAt: old.CreatedAt,
|
||||||
ProfilePirctureURL: old.ProfilePirctureURL,
|
ProfilePictureURL: old.ProfilePictureURL,
|
||||||
})
|
})
|
||||||
if apiErr != nil {
|
if apiErr != nil {
|
||||||
RespondError(w, apiErr, nil)
|
RespondError(w, apiErr, nil)
|
||||||
|
@ -255,7 +255,7 @@ func RegisterFirstUser(ctx context.Context, req *RegisterRequest) (*model.User,
|
|||||||
Email: req.Email,
|
Email: req.Email,
|
||||||
Password: hash,
|
Password: hash,
|
||||||
CreatedAt: time.Now().Unix(),
|
CreatedAt: time.Now().Unix(),
|
||||||
ProfilePirctureURL: "", // Currently unused
|
ProfilePictureURL: "", // Currently unused
|
||||||
GroupId: group.Id,
|
GroupId: group.Id,
|
||||||
OrgId: org.Id,
|
OrgId: org.Id,
|
||||||
}
|
}
|
||||||
@ -333,7 +333,7 @@ func RegisterInvitedUser(ctx context.Context, req *RegisterRequest, nopassword b
|
|||||||
Email: req.Email,
|
Email: req.Email,
|
||||||
Password: hash,
|
Password: hash,
|
||||||
CreatedAt: time.Now().Unix(),
|
CreatedAt: time.Now().Unix(),
|
||||||
ProfilePirctureURL: "", // Currently unused
|
ProfilePictureURL: "", // Currently unused
|
||||||
GroupId: group.Id,
|
GroupId: group.Id,
|
||||||
OrgId: invite.OrgId,
|
OrgId: invite.OrgId,
|
||||||
}
|
}
|
||||||
|
@ -185,7 +185,7 @@ func (mds *ModelDaoSqlite) CreateUser(ctx context.Context,
|
|||||||
`INSERT INTO users (id, name, email, password, created_at, profile_picture_url, group_id, org_id)
|
`INSERT INTO users (id, name, email, password, created_at, profile_picture_url, group_id, org_id)
|
||||||
VALUES (?, ?, ?, ?, ?, ?, ?,?);`,
|
VALUES (?, ?, ?, ?, ?, ?, ?,?);`,
|
||||||
user.Id, user.Name, user.Email, user.Password, user.CreatedAt,
|
user.Id, user.Name, user.Email, user.Password, user.CreatedAt,
|
||||||
user.ProfilePirctureURL, user.GroupId, user.OrgId,
|
user.ProfilePictureURL, user.GroupId, user.OrgId,
|
||||||
)
|
)
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -31,7 +31,7 @@ type User struct {
|
|||||||
Email string `json:"email" db:"email"`
|
Email string `json:"email" db:"email"`
|
||||||
Password string `json:"password,omitempty" db:"password"`
|
Password string `json:"password,omitempty" db:"password"`
|
||||||
CreatedAt int64 `json:"createdAt" db:"created_at"`
|
CreatedAt int64 `json:"createdAt" db:"created_at"`
|
||||||
ProfilePirctureURL string `json:"profilePictureURL" db:"profile_picture_url"`
|
ProfilePictureURL string `json:"profilePictureURL" db:"profile_picture_url"`
|
||||||
OrgId string `json:"orgId,omitempty" db:"org_id"`
|
OrgId string `json:"orgId,omitempty" db:"org_id"`
|
||||||
GroupId string `json:"groupId,omitempty" db:"group_id"`
|
GroupId string `json:"groupId,omitempty" db:"group_id"`
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user