(ctx context.Context, arg database.UpdateUserThemeLightParams)
| 7637 | } |
| 7638 | |
| 7639 | func (q *querier) UpdateUserThemeLight(ctx context.Context, arg database.UpdateUserThemeLightParams) (database.UserConfig, error) { |
| 7640 | u, err := q.db.GetUserByID(ctx, arg.UserID) |
| 7641 | if err != nil { |
| 7642 | return database.UserConfig{}, err |
| 7643 | } |
| 7644 | if err := q.authorizeContext(ctx, policy.ActionUpdatePersonal, u); err != nil { |
| 7645 | return database.UserConfig{}, err |
| 7646 | } |
| 7647 | return q.db.UpdateUserThemeLight(ctx, arg) |
| 7648 | } |
| 7649 | |
| 7650 | func (q *querier) UpdateUserThemeMode(ctx context.Context, arg database.UpdateUserThemeModeParams) (database.UserConfig, error) { |
| 7651 | u, err := q.db.GetUserByID(ctx, arg.UserID) |
nothing calls this directly
no test coverage detected