Skip to content

Commit

Permalink
Refactor this function to not always return the same value.
Browse files Browse the repository at this point in the history
  • Loading branch information
maikebing committed Sep 18, 2022
1 parent 3512c1b commit df283c7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export class SlidecontrolComponent implements OnInit {
}, 1000);
}
);
return false;
return true;
}

reset() {
Expand Down
2 changes: 1 addition & 1 deletion IoTSharp/Extensions/IoTSharpExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public static Guid GetUserId(this ClaimsPrincipal _user)
/// <returns></returns>
public static Guid GetTenantId(this ClaimsPrincipal _user)
{
return Guid.Parse( _user.FindFirstValue(IoTSharpClaimTypes.Tenant));
return Guid.Parse( _user.FindFirstValue(IoTSharpClaimTypes.Tenant)??Guid.Empty.ToString());
}
/// <summary>
/// 获取当前用户的客户ID
Expand Down
2 changes: 1 addition & 1 deletion IoTSharp/appsettings.PostgreSql.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@
"EventBusStore": "InMemory",
"EventBusMQ": "InMemory",
"TelemetryStorage": "Sharding",
"EventBus": "Shashlik"
"-EventBus": "Shashlik"
}

0 comments on commit df283c7

Please sign in to comment.