mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-16 18:47:57 -05:00
Add handling of user.UniqueId if not set (#1109)
* commented subscription caching * added additional code path if user.UniqueId not set * fixed failing unit tests
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);
|
||||||
{
|
}
|
||||||
|
if (result == null) {
|
||||||
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