(ctx context.Context, userID uuid.UUID)
| 4639 | } |
| 4640 | |
| 4641 | func (q *querier) GetUserChatDebugLoggingEnabled(ctx context.Context, userID uuid.UUID) (bool, error) { |
| 4642 | u, err := q.db.GetUserByID(ctx, userID) |
| 4643 | if err != nil { |
| 4644 | return false, err |
| 4645 | } |
| 4646 | if err := q.authorizeContext(ctx, policy.ActionReadPersonal, u); err != nil { |
| 4647 | return false, err |
| 4648 | } |
| 4649 | return q.db.GetUserChatDebugLoggingEnabled(ctx, userID) |
| 4650 | } |
| 4651 | |
| 4652 | func (q *querier) GetUserChatPersonalModelOverride(ctx context.Context, arg database.GetUserChatPersonalModelOverrideParams) (string, error) { |
| 4653 | u, err := q.db.GetUserByID(ctx, arg.UserID) |
nothing calls this directly
no test coverage detected