fix(basic.gblib): Allow MERGE keyword in storage #380. @othonlima

This commit is contained in:
Rodrigo Rodriguez 2023-12-10 21:00:00 -03:00
parent 4c48639b71
commit f81bbc6207

View file

@ -590,8 +590,6 @@ export class GBVMService extends GBService {
const tokenStops = {};
// Setups refresh token mechanism.
console.log(1);
console.log(this.tokens);
const tokens = this.tokens ? this.tokens.split(',') : [];
const interval = 60000; // 1 hour.
@ -602,19 +600,15 @@ export class GBVMService extends GBService {
const waitAndRefreshToken = async (token) => {
await timeout(interval);
console.log('geting token');
global[i] = await sys.getCustomToken({pid, token});
if (!tokenStops[token]) {
await waitAndRefreshToken(token);
}
};
console.log('b1');
(async () => {
(async (token) => {
await waitAndRefreshToken(token);
})();
console.log('b2');
})(token);
}
${code}