This commit is contained in:
@@ -542,14 +542,14 @@ func (q *Queries) UpdateUserPassword(ctx context.Context, arg UpdateUserPassword
|
||||
const updateUserProfile = `-- name: UpdateUserProfile :one
|
||||
UPDATE user_profiles
|
||||
SET
|
||||
display_name = $1,
|
||||
full_name = $2,
|
||||
avatar_url = $3,
|
||||
bio = $4,
|
||||
location = $5,
|
||||
website = $6,
|
||||
country_code = $7,
|
||||
phone = $8,
|
||||
display_name = COALESCE($1, display_name),
|
||||
full_name = COALESCE($2, full_name),
|
||||
avatar_url = COALESCE($3, avatar_url),
|
||||
bio = COALESCE($4, bio),
|
||||
location = COALESCE($5, location),
|
||||
website = COALESCE($6, website),
|
||||
country_code = COALESCE($7, country_code),
|
||||
phone = COALESCE($8, phone),
|
||||
updated_at = now()
|
||||
WHERE user_id = $9
|
||||
RETURNING user_id, display_name, full_name, avatar_url, bio, location, website, country_code, phone, created_at, updated_at
|
||||
|
||||
Reference in New Issue
Block a user