mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-04 23:45:07 +00:00
fix(eventstore): correct database type in PushWithClient
(#8949)
# Which Problems Are Solved `eventstore.PushWithClient` required the wrong type of for the client parameter. # How the Problems Are Solved Changed type of client from `database.Client` to `database.QueryExecutor`
This commit is contained in:
parent
1ee7a1ab7c
commit
7714af6f5b
@ -90,7 +90,7 @@ func (es *Eventstore) Push(ctx context.Context, cmds ...Command) ([]Event, error
|
|||||||
|
|
||||||
// PushWithClient pushes the events in a single transaction using the provided database client
|
// PushWithClient pushes the events in a single transaction using the provided database client
|
||||||
// an event needs at least an aggregate
|
// an event needs at least an aggregate
|
||||||
func (es *Eventstore) PushWithClient(ctx context.Context, client database.Client, cmds ...Command) ([]Event, error) {
|
func (es *Eventstore) PushWithClient(ctx context.Context, client database.QueryExecuter, cmds ...Command) ([]Event, error) {
|
||||||
if es.PushTimeout > 0 {
|
if es.PushTimeout > 0 {
|
||||||
var cancel func()
|
var cancel func()
|
||||||
ctx, cancel = context.WithTimeout(ctx, es.PushTimeout)
|
ctx, cancel = context.WithTimeout(ctx, es.PushTimeout)
|
||||||
|
Loading…
Reference in New Issue
Block a user