format for latest standard
This commit is contained in:
parent
4108efd9c7
commit
c2af183911
77 changed files with 1697 additions and 1693 deletions
|
|
@ -10,7 +10,7 @@ function migrateNames () {
|
|||
const cs = new pgp.helpers.ColumnSet(['device_id', 'name'], {table: 'devices'})
|
||||
|
||||
return settingsLoader.loadLatest()
|
||||
.then(r => machineLoader.getMachineNames(r.config))
|
||||
.then(_.map(r => ({device_id: r.deviceId, name: r.name})))
|
||||
.then(data => pgp.helpers.update(data, cs))
|
||||
.then(r => machineLoader.getMachineNames(r.config))
|
||||
.then(_.map(r => ({device_id: r.deviceId, name: r.name})))
|
||||
.then(data => pgp.helpers.update(data, cs))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue