perf: Move exports to worker service (#2514)

* first pass

* fixes

* fix: Move export related emails to queue

* i18n
This commit is contained in:
Tom Moor
2021-08-31 17:41:57 -07:00
committed by GitHub
parent 23a6459ae8
commit 476b5e03f9
9 changed files with 179 additions and 238 deletions

View File

@ -116,14 +116,19 @@ export type CollectionImportEvent = {
ip: string,
};
export type CollectionExportAll = {
export type CollectionExportEvent = {
name: "collections.export",
teamId: string,
actorId: string,
collectionId: string,
modelId: string,
};
export type CollectionExportAllEvent = {
name: "collections.export_all",
teamId: string,
actorId: string,
data: {
exportId: string,
collections: [{ name: string, id: string }],
},
modelId: string,
};
export type FileOperationEvent = {
@ -185,7 +190,8 @@ export type CollectionEvent =
sharingChanged: boolean,
},
ip: string,
};
}
| CollectionExportEvent;
export type GroupEvent =
| {
@ -227,7 +233,7 @@ export type Event =
| DocumentEvent
| CollectionEvent
| CollectionImportEvent
| CollectionExportAll
| CollectionExportAllEvent
| FileOperationEvent
| IntegrationEvent
| GroupEvent