Llamar a ONU Segundo de volta
var var1
var var2
try{
await unirest
.get( Env.get('REST_VPN') + '/yourURL?name='+name)
.then(function(response){
const json = JSON.parse(response.body.data)
var1 = json.subjectId
var2 = json.courseName
})
const result = await Database.table('yourTable').where('name',name).update({ column1:va1,column2:var2 })
} catch (err) {
console.log('missing name')
}
Horrible Hummingbird