Put migrated on-demand last
This commit is contained in:
parent
615f7d47bd
commit
341ae97f50
|
@ -34,8 +34,6 @@ struct MapperV2 {
|
|||
builder.name = v2.header.name
|
||||
builder.attributes.lastUpdate = v2.header.lastUpdate
|
||||
|
||||
modules.append(toOnDemandModule(v2.onDemand))
|
||||
|
||||
if let provider = v2.provider {
|
||||
if let module = try toProviderModule(provider) {
|
||||
let providerId = ProviderID(rawValue: provider.name)
|
||||
|
@ -52,6 +50,8 @@ struct MapperV2 {
|
|||
modules.append($0)
|
||||
}
|
||||
|
||||
modules.append(toOnDemandModule(v2.onDemand))
|
||||
|
||||
builder.modules = modules
|
||||
builder.activeModulesIds = Set(modules.map(\.id))
|
||||
return try builder.tryBuild()
|
||||
|
|
Loading…
Reference in New Issue