(ctx context.Context, arg database.DeleteChatDebugDataAfterMessageIDParams)
| 1960 | } |
| 1961 | |
| 1962 | func (q *querier) DeleteChatDebugDataAfterMessageID(ctx context.Context, arg database.DeleteChatDebugDataAfterMessageIDParams) (int64, error) { |
| 1963 | chat, err := q.db.GetChatByID(ctx, arg.ChatID) |
| 1964 | if err != nil { |
| 1965 | return 0, err |
| 1966 | } |
| 1967 | if err := q.authorizeContext(ctx, policy.ActionUpdate, chat); err != nil { |
| 1968 | return 0, err |
| 1969 | } |
| 1970 | return q.db.DeleteChatDebugDataAfterMessageID(ctx, arg) |
| 1971 | } |
| 1972 | |
| 1973 | func (q *querier) DeleteChatDebugDataByChatID(ctx context.Context, arg database.DeleteChatDebugDataByChatIDParams) (int64, error) { |
| 1974 | chat, err := q.db.GetChatByID(ctx, arg.ChatID) |
nothing calls this directly
no test coverage detected