(ctx context.Context, arg database.DeleteUserChatCompactionThresholdParams)
| 2332 | } |
| 2333 | |
| 2334 | func (q *querier) DeleteUserChatCompactionThreshold(ctx context.Context, arg database.DeleteUserChatCompactionThresholdParams) error { |
| 2335 | u, err := q.db.GetUserByID(ctx, arg.UserID) |
| 2336 | if err != nil { |
| 2337 | return err |
| 2338 | } |
| 2339 | if err := q.authorizeContext(ctx, policy.ActionUpdatePersonal, u); err != nil { |
| 2340 | return err |
| 2341 | } |
| 2342 | return q.db.DeleteUserChatCompactionThreshold(ctx, arg) |
| 2343 | } |
| 2344 | |
| 2345 | func (q *querier) DeleteUserSecretByUserIDAndName(ctx context.Context, arg database.DeleteUserSecretByUserIDAndNameParams) (database.UserSecret, error) { |
| 2346 | obj := rbac.ResourceUserSecret.WithOwner(arg.UserID.String()) |
nothing calls this directly
no test coverage detected