mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-16 10:58:30 -05:00
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:
@@ -222,9 +222,10 @@ namespace Microsoft.SqlTools.ResourceProvider.DefaultImpl
|
|||||||
|
|
||||||
if (user != null)
|
if (user != null)
|
||||||
{
|
{
|
||||||
result = _subscriptionCache.Get(user.UniqueId);
|
if (user.UniqueId != "") {
|
||||||
if (result == null)
|
result = _subscriptionCache.Get(user.UniqueId);
|
||||||
{
|
}
|
||||||
|
else {
|
||||||
result = await GetSubscriptionFromServiceAsync(user);
|
result = await GetSubscriptionFromServiceAsync(user);
|
||||||
_subscriptionCache.UpdateCache(user.UniqueId, result);
|
_subscriptionCache.UpdateCache(user.UniqueId, result);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user