diff --git a/packages/plugin-ui-schema-storage/src/server-hooks/index.ts b/packages/plugin-ui-schema-storage/src/server-hooks/index.ts index 79eeda6ad..4a08ee0c0 100644 --- a/packages/plugin-ui-schema-storage/src/server-hooks/index.ts +++ b/packages/plugin-ui-schema-storage/src/server-hooks/index.ts @@ -39,7 +39,7 @@ export class ServerHooks { collection: collectionModel.get('name'), }, { - collectionModel, + collectionInstance: collectionModel, options, }, transaction, @@ -56,7 +56,7 @@ export class ServerHooks { collection: collectionName, }, { - fieldInstance: fieldModel, + collectionFieldInstance: fieldModel, options, }, transaction, @@ -75,7 +75,7 @@ export class ServerHooks { 'fields.$anyOf': [fieldName], }, { - fieldInstance: fieldModel, + collectionFieldInstance: fieldModel, options, }, transaction,