fix(websocketspec): add transaction access to HookContext

This commit is contained in:
Hein
2026-05-15 14:59:34 +02:00
parent 1ebe0d7ac3
commit cb921f2c5e
2 changed files with 4 additions and 0 deletions

View File

@@ -111,6 +111,9 @@ type HookContext struct {
AbortMessage string // Message to return if aborted
AbortCode int // HTTP status code if aborted
// Tx provides access to the database/transaction for executing additional SQL
Tx common.Database
// Metadata is additional context data
Metadata map[string]interface{}
}