Skip to content

Instantly share code, notes, and snippets.

@hmpmarketing
Created January 12, 2018 12:30
Show Gist options
  • Select an option

  • Save hmpmarketing/2fdae21f9fa302661ac10e70d4ae8c6b to your computer and use it in GitHub Desktop.

Select an option

Save hmpmarketing/2fdae21f9fa302661ac10e70d4ae8c6b to your computer and use it in GitHub Desktop.
var ispsArr = mysql.IspWhitelist.findAll({
where:{iso_code:'GB'},
attributes: ['isp_name'],
}).then((isps) => {
let ispsArr=[];
isps.forEach(function(isp) {
ispsArr.push(isp.isp_name)
})
//console.log(ispsArr)
return ispsArr;
}).then((ispsArr) => {
return ispsArr;
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment