(ctx context.Context, arg database.UpsertUserChatDebugLoggingEnabledParams)
| 8345 | } |
| 8346 | |
| 8347 | func (q *querier) UpsertUserChatDebugLoggingEnabled(ctx context.Context, arg database.UpsertUserChatDebugLoggingEnabledParams) error { |
| 8348 | u, err := q.db.GetUserByID(ctx, arg.UserID) |
| 8349 | if err != nil { |
| 8350 | return err |
| 8351 | } |
| 8352 | if err := q.authorizeContext(ctx, policy.ActionUpdatePersonal, u); err != nil { |
| 8353 | return err |
| 8354 | } |
| 8355 | return q.db.UpsertUserChatDebugLoggingEnabled(ctx, arg) |
| 8356 | } |
| 8357 | |
| 8358 | func (q *querier) UpsertUserChatPersonalModelOverride(ctx context.Context, arg database.UpsertUserChatPersonalModelOverrideParams) error { |
| 8359 | u, err := q.db.GetUserByID(ctx, arg.UserID) |
nothing calls this directly
no test coverage detected