(ctx context.Context, arg database.GetUserChatCompactionThresholdParams)
| 4617 | } |
| 4618 | |
| 4619 | func (q *querier) GetUserChatCompactionThreshold(ctx context.Context, arg database.GetUserChatCompactionThresholdParams) (string, error) { |
| 4620 | u, err := q.db.GetUserByID(ctx, arg.UserID) |
| 4621 | if err != nil { |
| 4622 | return "", err |
| 4623 | } |
| 4624 | if err := q.authorizeContext(ctx, policy.ActionReadPersonal, u); err != nil { |
| 4625 | return "", err |
| 4626 | } |
| 4627 | return q.db.GetUserChatCompactionThreshold(ctx, arg) |
| 4628 | } |
| 4629 | |
| 4630 | func (q *querier) GetUserChatCustomPrompt(ctx context.Context, userID uuid.UUID) (string, error) { |
| 4631 | u, err := q.db.GetUserByID(ctx, userID) |
nothing calls this directly
no test coverage detected