fix(basic.gblib): Allow MERGE keyword in storage #380. @othonlima
This commit is contained in:
parent
4c48639b71
commit
f81bbc6207
1 changed files with 2 additions and 8 deletions
|
@ -590,8 +590,6 @@ export class GBVMService extends GBService {
|
||||||
const tokenStops = {};
|
const tokenStops = {};
|
||||||
|
|
||||||
// Setups refresh token mechanism.
|
// Setups refresh token mechanism.
|
||||||
console.log(1);
|
|
||||||
console.log(this.tokens);
|
|
||||||
const tokens = this.tokens ? this.tokens.split(',') : [];
|
const tokens = this.tokens ? this.tokens.split(',') : [];
|
||||||
const interval = 60000; // 1 hour.
|
const interval = 60000; // 1 hour.
|
||||||
|
|
||||||
|
@ -602,19 +600,15 @@ export class GBVMService extends GBService {
|
||||||
|
|
||||||
const waitAndRefreshToken = async (token) => {
|
const waitAndRefreshToken = async (token) => {
|
||||||
await timeout(interval);
|
await timeout(interval);
|
||||||
console.log('geting token');
|
|
||||||
global[i] = await sys.getCustomToken({pid, token});
|
global[i] = await sys.getCustomToken({pid, token});
|
||||||
|
|
||||||
if (!tokenStops[token]) {
|
if (!tokenStops[token]) {
|
||||||
await waitAndRefreshToken(token);
|
await waitAndRefreshToken(token);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
console.log('b1');
|
(async (token) => {
|
||||||
(async () => {
|
|
||||||
await waitAndRefreshToken(token);
|
await waitAndRefreshToken(token);
|
||||||
})();
|
})(token);
|
||||||
console.log('b2');
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
${code}
|
${code}
|
||||||
|
|
Loading…
Add table
Reference in a new issue