You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run "node config/index.js get", it was actually executed successfully, but it does not exit.
Shall we need to add "finally" block like the following?
functiongetTemplate(){constconfig=admin.remoteConfig();config.getTemplate().then(template=>{console.log('ETag from server: '+template.etag);consttemplateStr=JSON.stringify(template,null,2);fs.writeFileSync('config.json',templateStr);}).catch(err=>{console.error('Unable to get template');console.error(err);}).finally(()=>{process.exit();});}
The text was updated successfully, but these errors were encountered:
When I run "node config/index.js get", it was actually executed successfully, but it does not exit.
Shall we need to add "finally" block like the following?
The text was updated successfully, but these errors were encountered: