Skip to content

Commit

Permalink
StoreOptions can deal with null tenant id. Bump to 7.19.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremydmiller committed Jun 4, 2024
1 parent bf49a48 commit f175add
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project>
<PropertyGroup>
<Version>7.19.0</Version>
<Version>7.19.1</Version>
<LangVersion>12.0</LangVersion>
<Authors>Jeremy D. Miller;Babu Annamalai;Oskar Dudycz;Joona-Pekka Kokko</Authors>
<PackageIconUrl>https://martendb.io/logo.png</PackageIconUrl>
Expand Down
1 change: 1 addition & 0 deletions src/Marten/StoreOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ public StoreOptions()

public string MaybeCorrectTenantId(string tenantId)
{
if (tenantId.IsEmpty()) return Marten.Storage.Tenancy.DefaultTenantId;
if (tenantId == Marten.Storage.Tenancy.DefaultTenantId) return tenantId;

switch (TenantIdStyle)
Expand Down

0 comments on commit f175add

Please sign in to comment.