(ctx context.Context, arg database.UpdateUserChatCustomPromptParams)
| 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) |
| 7422 | if err != nil { |
| 7423 | return database.UserConfig{}, err |
| 7424 | } |
| 7425 | if err := q.authorizeContext(ctx, policy.ActionUpdatePersonal, u); err != nil { |
| 7426 | return database.UserConfig{}, err |
| 7427 | } |
| 7428 | return q.db.UpdateUserChatCustomPrompt(ctx, arg) |
| 7429 | } |
| 7430 | |
| 7431 | func (q *querier) UpdateUserCodeDiffDisplayMode(ctx context.Context, arg database.UpdateUserCodeDiffDisplayModeParams) (string, error) { |
| 7432 | user, err := q.db.GetUserByID(ctx, arg.UserID) |
nothing calls this directly
no test coverage detected