(ctx context.Context, arg database.UpdateUserChatCompactionThresholdParams)
| 7407 | } |
| 7408 | |
| 7409 | func (q *querier) UpdateUserChatCompactionThreshold(ctx context.Context, arg database.UpdateUserChatCompactionThresholdParams) (database.UserConfig, error) { |
| 7410 | u, err := q.db.GetUserByID(ctx, arg.UserID) |
| 7411 | if err != nil { |
| 7412 | return database.UserConfig{}, err |
| 7413 | } |
| 7414 | if err := q.authorizeContext(ctx, policy.ActionUpdatePersonal, u); err != nil { |
| 7415 | return database.UserConfig{}, err |
| 7416 | } |
| 7417 | return q.db.UpdateUserChatCompactionThreshold(ctx, arg) |
| 7418 | } |
| 7419 | |
| 7420 | func (q *querier) UpdateUserChatCustomPrompt(ctx context.Context, arg database.UpdateUserChatCustomPromptParams) (database.UserConfig, error) { |
| 7421 | u, err := q.db.GetUserByID(ctx, arg.UserID) |
nothing calls this directly
no test coverage detected