Added additional code path if user.UniqueId not set (#1105)

* commented subscription caching

* added additional code path if user.UniqueId not set
This commit is contained in:
Christopher Suh
2020-10-29 18:43:19 -04:00
committed by GitHub
parent 8c805a72a9
commit 2354dfc4c7

View File

@@ -222,9 +222,10 @@ namespace Microsoft.SqlTools.ResourceProvider.DefaultImpl
if (user != null)
{
result = _subscriptionCache.Get(user.UniqueId);
if (result == null)
{
if (user.UniqueId != "") {
result = _subscriptionCache.Get(user.UniqueId);
}
else {
result = await GetSubscriptionFromServiceAsync(user);
_subscriptionCache.UpdateCache(user.UniqueId, result);
}