@@ -185,7 +185,7 @@ func (q *querier) authorizeAIBridgeInterceptionUpdate(ctx context.Context, sessI
185
185
186
186
sess ,err := q .db .GetAIBridgeInterceptionByID (ctx ,sessID )
187
187
if err != nil {
188
- return xerrors .Errorf ("fetch aibridgesession %q: %w" ,sessID ,err )
188
+ return xerrors .Errorf ("fetch aibridgeinterception %q: %w" ,sessID ,err )
189
189
}
190
190
191
191
err = q .auth .Authorize (ctx ,act ,policy .ActionUpdate ,sess .RBACObject ())
@@ -3816,23 +3816,23 @@ func (q *querier) InsertAIBridgeInterception(ctx context.Context, arg database.I
3816
3816
}
3817
3817
3818
3818
func (q * querier )InsertAIBridgeTokenUsage (ctx context.Context ,arg database.InsertAIBridgeTokenUsageParams )error {
3819
- // All aibridge_token_usages records belong to the initiator of their associatedsession .
3819
+ // All aibridge_token_usages records belong to the initiator of their associatedinterception .
3820
3820
if err := q .authorizeAIBridgeInterceptionUpdate (ctx ,arg .InterceptionID );err != nil {
3821
3821
return err
3822
3822
}
3823
3823
return q .db .InsertAIBridgeTokenUsage (ctx ,arg )
3824
3824
}
3825
3825
3826
3826
func (q * querier )InsertAIBridgeToolUsage (ctx context.Context ,arg database.InsertAIBridgeToolUsageParams )error {
3827
- // All aibridge_tool_usages records belong to the initiator of their associatedsession .
3827
+ // All aibridge_tool_usages records belong to the initiator of their associatedinterception .
3828
3828
if err := q .authorizeAIBridgeInterceptionUpdate (ctx ,arg .InterceptionID );err != nil {
3829
3829
return err
3830
3830
}
3831
3831
return q .db .InsertAIBridgeToolUsage (ctx ,arg )
3832
3832
}
3833
3833
3834
3834
func (q * querier )InsertAIBridgeUserPrompt (ctx context.Context ,arg database.InsertAIBridgeUserPromptParams )error {
3835
- // All aibridge_user_prompts records belong to the initiator of their associatedsession .
3835
+ // All aibridge_user_prompts records belong to the initiator of their associatedinterception .
3836
3836
if err := q .authorizeAIBridgeInterceptionUpdate (ctx ,arg .InterceptionID );err != nil {
3837
3837
return err
3838
3838
}