Skip to content

Commit

Permalink
Added missing file
Browse files Browse the repository at this point in the history
  • Loading branch information
Kahn committed Oct 7, 2021
1 parent c5d252e commit 2d82c52
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions dataset.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import bunyan from 'bunyan';
import config from 'config';
import { getXMLtoJS } from './client.js';

var log = bunyan.createLogger({name: config.get('app.name'), level: config.get('app.log_level')});

export async function getDataset(){
try{
var profile = await getXMLtoJS(config.get('data.vatsys.profileUrl'));
return profile;
}catch(err){
log.error(err)
return false;
}
}

0 comments on commit 2d82c52

Please sign in to comment.