(ctx context.Context, arg database.UpdateUserProfileParams)
| 7525 | } |
| 7526 | |
| 7527 | func (q *querier) UpdateUserProfile(ctx context.Context, arg database.UpdateUserProfileParams) (database.User, error) { |
| 7528 | u, err := q.db.GetUserByID(ctx, arg.ID) |
| 7529 | if err != nil { |
| 7530 | return database.User{}, err |
| 7531 | } |
| 7532 | if err := q.authorizeContext(ctx, policy.ActionUpdatePersonal, u); err != nil { |
| 7533 | return database.User{}, err |
| 7534 | } |
| 7535 | return q.db.UpdateUserProfile(ctx, arg) |
| 7536 | } |
| 7537 | |
| 7538 | func (q *querier) UpdateUserQuietHoursSchedule(ctx context.Context, arg database.UpdateUserQuietHoursScheduleParams) (database.User, error) { |
| 7539 | u, err := q.db.GetUserByID(ctx, arg.ID) |
nothing calls this directly
no test coverage detected