fix overloaded models issue
This commit is contained in:
@@ -26,7 +26,10 @@ export const ModelsDevPlugin = define({
|
|||||||
})
|
})
|
||||||
yield* ctx.catalog.transform((catalog) => {
|
yield* ctx.catalog.transform((catalog) => {
|
||||||
for (const provider of loaded.data) {
|
for (const provider of loaded.data) {
|
||||||
catalog.provider.update(provider.info.id, (draft) => Object.assign(draft, provider.info))
|
catalog.provider.update(provider.info.id, (draft) => {
|
||||||
|
Object.assign(draft, provider.info)
|
||||||
|
draft.integrationID = provider.info.id
|
||||||
|
})
|
||||||
for (const model of provider.models) {
|
for (const model of provider.models) {
|
||||||
catalog.model.update(provider.info.id, model.id, (draft) => Object.assign(draft, model))
|
catalog.model.update(provider.info.id, model.id, (draft) => Object.assign(draft, model))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user