mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-26 17:55:59 +00:00
azure auth works
This commit is contained in:
@@ -95,9 +95,7 @@ export async function subscribeCacheChange(reloadTrigger, cacheKey, reloadHandle
|
||||
if (!subscriptionsByReloadTrigger[itemString]) {
|
||||
subscriptionsByReloadTrigger[itemString] = [];
|
||||
}
|
||||
console.log('+++++++++++++ SUBSCRIBE', itemString);
|
||||
subscriptionsByReloadTrigger[itemString].push(reloadHandler);
|
||||
console.log('SUBSCRIBED', subscriptionsByReloadTrigger[itemString]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -110,7 +108,6 @@ export async function unsubscribeCacheChange(reloadTrigger, cacheKey, reloadHand
|
||||
);
|
||||
}
|
||||
if (subscriptionsByReloadTrigger[itemString].length == 0) {
|
||||
console.log('------------- UNSUBSCRIBE', itemString);
|
||||
delete subscriptionsByReloadTrigger[itemString];
|
||||
}
|
||||
}
|
||||
@@ -121,7 +118,6 @@ export function dispatchCacheChange(reloadTrigger) {
|
||||
|
||||
for (const item of getAsArray(reloadTrigger)) {
|
||||
const itemString = stableStringify(transformApiArgsInv(item));
|
||||
console.log('@@@@@@@@@@@@@@@@@@@@@@@@@ NOTIFYING ', itemString, subscriptionsByReloadTrigger[itemString]);
|
||||
if (subscriptionsByReloadTrigger[itemString]) {
|
||||
for (const handler of subscriptionsByReloadTrigger[itemString]) {
|
||||
handler();
|
||||
|
||||
Reference in New Issue
Block a user