refactor(editor): job should not rely on doc collection directly (#9488)
This commit is contained in:
@@ -83,7 +83,15 @@ export function createStarterDocCollection() {
|
||||
// debug info
|
||||
window.collection = collection;
|
||||
window.blockSchemas = AffineSchemas;
|
||||
window.job = new Job({ collection: collection });
|
||||
window.job = new Job({
|
||||
schema: collection.schema,
|
||||
blobCRUD: collection.blobSync,
|
||||
docCRUD: {
|
||||
create: (id: string) => collection.createDoc({ id }),
|
||||
get: (id: string) => collection.getDoc(id),
|
||||
delete: (id: string) => collection.removeDoc(id),
|
||||
},
|
||||
});
|
||||
window.Y = DocCollection.Y;
|
||||
window.testUtils = new TestUtils();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user