mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-20 14:13:08 +00:00
Convert object to array when normalising legacy target apps
Change-type: patch Connects-to: #567 Signed-off-by: Cameron Diver <cameron@resin.io>
This commit is contained in:
parent
5320b92c98
commit
a150dbf329
@ -153,8 +153,9 @@ module.exports = class DeviceState extends EventEmitter
|
||||
.then =>
|
||||
console.log('Migrating legacy app volumes')
|
||||
@applications.getTargetApps()
|
||||
.map (app) =>
|
||||
@applications.volumes.createFromLegacy(app.appId)
|
||||
.then(_.keys)
|
||||
.map (appId) =>
|
||||
@applications.volumes.createFromLegacy(appId)
|
||||
.then =>
|
||||
@config.set({ legacyAppsPresent: 'false' })
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user