new(basic.gblib): New batch features.
This commit is contained in:
parent
0177717f6e
commit
baaa3df66e
1 changed files with 2 additions and 2 deletions
|
@ -638,12 +638,12 @@ export class GBVMService extends GBService {
|
|||
// Expires token 10min. before or if it the first time, load it.
|
||||
|
||||
if (expiration < new Date().getTime() || firstTime) {
|
||||
console.log (Expired. Refreshing token...' + expiration);
|
||||
console.log ('Expired. Refreshing token...' + expiration);
|
||||
const {token, expiresOn} = await sys.getCustomToken({pid, tokenName});
|
||||
|
||||
global[tokenName] = token;
|
||||
global[tokenName + "_expiresOn"]= expiresOn;
|
||||
console.log (DONE:' + new Date(global[tokenName + "_expiresOn"]);;
|
||||
console.log ('DONE:' + new Date(global[tokenName + "_expiresOn"]);;
|
||||
}
|
||||
|
||||
if (__indexer == 0) {
|
||||
|
|
Loading…
Add table
Reference in a new issue