Skip to content

Commit

Permalink
Correcting the tenant id on session creation
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremydmiller committed May 21, 2024
1 parent e0c074b commit af93884
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Marten/Internal/Sessions/QuerySession.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ internal QuerySession(
)
{
_store = store;
TenantId = tenant?.TenantId ?? sessionOptions.Tenant?.TenantId ?? sessionOptions.TenantId;
TenantId = store.Options.MaybeCorrectTenantId(tenant?.TenantId ?? sessionOptions.Tenant?.TenantId ?? sessionOptions.TenantId);
Database = tenant?.Database ?? sessionOptions.Tenant?.Database ??
throw new ArgumentNullException(nameof(SessionOptions.Tenant));

Expand Down

0 comments on commit af93884

Please sign in to comment.