Created
January 12, 2018 12:30
-
-
Save hmpmarketing/2fdae21f9fa302661ac10e70d4ae8c6b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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