format for latest standard
This commit is contained in:
parent
4108efd9c7
commit
c2af183911
77 changed files with 1697 additions and 1693 deletions
|
|
@ -6,7 +6,7 @@ const rawCountries = require('../raw-countries.json')
|
|||
const topCodes = ['US', 'GB', 'CA', 'AU']
|
||||
|
||||
const countries = rawCountries
|
||||
.map(r => ({code: r.cca2, display: r.name.common}))
|
||||
.map(r => ({code: r.cca2, display: r.name.common}))
|
||||
|
||||
const topCountries = topCodes.map(c => countries.find(_.matchesProperty('code', c)))
|
||||
const final = _.uniqBy(_.get('code'), _.concat(topCountries, countries))
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ const fields = [
|
|||
]
|
||||
|
||||
settingsLoader.modifyConfig(fields)
|
||||
.then(() => {
|
||||
console.log('success.')
|
||||
process.exit(0)
|
||||
})
|
||||
.then(() => {
|
||||
console.log('success.')
|
||||
process.exit(0)
|
||||
})
|
||||
|
|
|
|||
|
|
@ -11,15 +11,15 @@ function dbFetchConfig () {
|
|||
'select data from user_config where type=$1 order by id desc limit 1',
|
||||
['config']
|
||||
)
|
||||
.then(row => row && row.data)
|
||||
.then(row => row && row.data)
|
||||
}
|
||||
|
||||
dbFetchConfig()
|
||||
.then(config => {
|
||||
pp(config)
|
||||
process.exit(0)
|
||||
})
|
||||
.catch(e => {
|
||||
console.log(e)
|
||||
process.exit(1)
|
||||
})
|
||||
.then(config => {
|
||||
pp(config)
|
||||
process.exit(0)
|
||||
})
|
||||
.catch(e => {
|
||||
console.log(e)
|
||||
process.exit(1)
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue