chore: Refactor data import (#3434)

* Complete refactor of import

* feat: Notion data import (#3442)
This commit is contained in:
Tom Moor
2022-04-23 10:07:35 -07:00
committed by GitHub
parent bdcfaae025
commit 33ce49cc33
45 changed files with 2217 additions and 1066 deletions

View File

@@ -98,9 +98,10 @@ export default class CollectionsStore extends BaseStore<Collection> {
}
@action
import = async (attachmentId: string) => {
import = async (attachmentId: string, format?: string) => {
await client.post("/collections.import", {
type: "outline",
format,
attachmentId,
});
};