fix(basic.gblib): Allow MERGE keyword in storage #380. @othonlima
This commit is contained in:
parent
84cc7b85cb
commit
d298e0b148
1 changed files with 7 additions and 2 deletions
|
@ -592,7 +592,7 @@ export class GBVMService extends GBService {
|
||||||
// Setups refresh token mechanism.
|
// Setups refresh token mechanism.
|
||||||
|
|
||||||
const tokens = this.variables['tokens'];
|
const tokens = this.variables['tokens'];
|
||||||
const interval = 60; // 1 hour.
|
const interval = 60000; // 1 hour.
|
||||||
|
|
||||||
for(i in tokens) {
|
for(i in tokens) {
|
||||||
|
|
||||||
|
@ -601,14 +601,19 @@ 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 () => {
|
||||||
|
await waitAndRefreshToken(token);
|
||||||
|
})();
|
||||||
|
console.log('b2');
|
||||||
|
|
||||||
await waitAndRefreshToken(token);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
${code}
|
${code}
|
||||||
|
|
Loading…
Add table
Reference in a new issue