mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-25 01:42:03 +00:00
fix mock context: add organization ID to instance
This commit is contained in:
@@ -25,7 +25,10 @@ func WithMockFeatures(features feature.Features) MockContextInstanceOpts {
|
||||
func NewMockContext(instanceID, orgID, userID string, opts ...MockContextInstanceOpts) context.Context {
|
||||
ctx := context.WithValue(context.Background(), dataKey, CtxData{UserID: userID, OrgID: orgID})
|
||||
|
||||
i := &instance{id: instanceID}
|
||||
i := &instance{
|
||||
id: instanceID,
|
||||
orgID: orgID,
|
||||
}
|
||||
for _, o := range opts {
|
||||
o(i)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user