mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-24 13:17:10 +08:00
feat(editor): add provider for base adapter (#11169)
This commit is contained in:
@@ -131,8 +131,8 @@ export const AttachmentAdapterFactoryIdentifier =
|
||||
|
||||
export const AttachmentAdapterFactoryExtension: ExtensionType = {
|
||||
setup: di => {
|
||||
di.addImpl(AttachmentAdapterFactoryIdentifier, () => ({
|
||||
get: (job: Transformer) => new AttachmentAdapter(job),
|
||||
di.addImpl(AttachmentAdapterFactoryIdentifier, provider => ({
|
||||
get: (job: Transformer) => new AttachmentAdapter(job, provider),
|
||||
}));
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user