(ctx context.Context, arg database.UpdateUserThemePreferenceParams)
| 7659 | } |
| 7660 | |
| 7661 | func (q *querier) UpdateUserThemePreference(ctx context.Context, arg database.UpdateUserThemePreferenceParams) (database.UserConfig, error) { |
| 7662 | u, err := q.db.GetUserByID(ctx, arg.UserID) |
| 7663 | if err != nil { |
| 7664 | return database.UserConfig{}, err |
| 7665 | } |
| 7666 | if err := q.authorizeContext(ctx, policy.ActionUpdatePersonal, u); err != nil { |
| 7667 | return database.UserConfig{}, err |
| 7668 | } |
| 7669 | return q.db.UpdateUserThemePreference(ctx, arg) |
| 7670 | } |
| 7671 | |
| 7672 | func (q *querier) UpdateUserThinkingDisplayMode(ctx context.Context, arg database.UpdateUserThinkingDisplayModeParams) (string, error) { |
| 7673 | user, err := q.db.GetUserByID(ctx, arg.UserID) |
nothing calls this directly
no test coverage detected