mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-06 15:33:08 +00:00
fix(projections): pass context to statement execution method (#10328)
## Which problems are solved
The execution of statements of projections did not have the context
present.
## How the problems were solved
Pass the context to the execute function
## Additional info
This change is required to use the repositories of the relational tables
in projections.
(cherry picked from commit 20e7807ee5)
This commit is contained in:
@@ -440,7 +440,7 @@ func TestActionProjection_reduces(t *testing.T) {
|
||||
assert.Nil(t, stmt.Execute)
|
||||
return
|
||||
}
|
||||
err = stmt.Execute(nil, "")
|
||||
err = stmt.Execute(t.Context(), nil, "")
|
||||
if w.stmtErr != nil {
|
||||
w.stmtErr(t, err)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user