mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-01 02:52:00 +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 {
|
||||
old.Name = update.Name
|
||||
}
|
||||
if len(update.ProfilePirctureURL) > 0 {
|
||||
old.ProfilePirctureURL = update.ProfilePirctureURL
|
||||
if len(update.ProfilePictureURL) > 0 {
|
||||
old.ProfilePictureURL = update.ProfilePictureURL
|
||||
}
|
||||
|
||||
_, apiErr = dao.DB().EditUser(ctx, &model.User{
|
||||
@ -1946,7 +1946,7 @@ func (aH *APIHandler) editUser(w http.ResponseWriter, r *http.Request) {
|
||||
Email: old.Email,
|
||||
Password: old.Password,
|
||||
CreatedAt: old.CreatedAt,
|
||||
ProfilePirctureURL: old.ProfilePirctureURL,
|
||||
ProfilePictureURL: old.ProfilePictureURL,
|
||||
})
|
||||
if apiErr != nil {
|
||||
RespondError(w, apiErr, nil)
|
||||
|
@ -255,7 +255,7 @@ func RegisterFirstUser(ctx context.Context, req *RegisterRequest) (*model.User,
|
||||
Email: req.Email,
|
||||
Password: hash,
|
||||
CreatedAt: time.Now().Unix(),
|
||||
ProfilePirctureURL: "", // Currently unused
|
||||
ProfilePictureURL: "", // Currently unused
|
||||
GroupId: group.Id,
|
||||
OrgId: org.Id,
|
||||
}
|
||||
@ -333,7 +333,7 @@ func RegisterInvitedUser(ctx context.Context, req *RegisterRequest, nopassword b
|
||||
Email: req.Email,
|
||||
Password: hash,
|
||||
CreatedAt: time.Now().Unix(),
|
||||
ProfilePirctureURL: "", // Currently unused
|
||||
ProfilePictureURL: "", // Currently unused
|
||||
GroupId: group.Id,
|
||||
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)
|
||||
VALUES (?, ?, ?, ?, ?, ?, ?,?);`,
|
||||
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 {
|
||||
|
@ -31,7 +31,7 @@ type User struct {
|
||||
Email string `json:"email" db:"email"`
|
||||
Password string `json:"password,omitempty" db:"password"`
|
||||
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"`
|
||||
GroupId string `json:"groupId,omitempty" db:"group_id"`
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user