(ctx context.Context, arg database.UpdateUserTerminalFontParams)
| 7615 | } |
| 7616 | |
| 7617 | func (q *querier) UpdateUserTerminalFont(ctx context.Context, arg database.UpdateUserTerminalFontParams) (database.UserConfig, error) { |
| 7618 | u, err := q.db.GetUserByID(ctx, arg.UserID) |
| 7619 | if err != nil { |
| 7620 | return database.UserConfig{}, err |
| 7621 | } |
| 7622 | if err := q.authorizeContext(ctx, policy.ActionUpdatePersonal, u); err != nil { |
| 7623 | return database.UserConfig{}, err |
| 7624 | } |
| 7625 | return q.db.UpdateUserTerminalFont(ctx, arg) |
| 7626 | } |
| 7627 | |
| 7628 | func (q *querier) UpdateUserThemeDark(ctx context.Context, arg database.UpdateUserThemeDarkParams) (database.UserConfig, error) { |
| 7629 | u, err := q.db.GetUserByID(ctx, arg.UserID) |
nothing calls this directly
no test coverage detected