(ctx context.Context, arg database.LinkChatFilesParams)
| 6093 | } |
| 6094 | |
| 6095 | func (q *querier) LinkChatFiles(ctx context.Context, arg database.LinkChatFilesParams) (int32, error) { |
| 6096 | chat, err := q.db.GetChatByID(ctx, arg.ChatID) |
| 6097 | if err != nil { |
| 6098 | return 0, err |
| 6099 | } |
| 6100 | if err := q.authorizeContext(ctx, policy.ActionUpdate, chat); err != nil { |
| 6101 | return 0, err |
| 6102 | } |
| 6103 | return q.db.LinkChatFiles(ctx, arg) |
| 6104 | } |
| 6105 | |
| 6106 | func (q *querier) ListAIBridgeClients(ctx context.Context, arg database.ListAIBridgeClientsParams) ([]string, error) { |
| 6107 | prep, err := prepareSQLFilter(ctx, q.auth, policy.ActionRead, rbac.ResourceAibridgeInterception.Type) |
nothing calls this directly
no test coverage detected