1
0

add: endpoint and processor for account data export

This commit is contained in:
Mar0xy
2023-11-07 03:31:47 +01:00
parent f17f630acd
commit e9b6ed941b
8 changed files with 824 additions and 0 deletions
+10
View File
@@ -164,6 +164,16 @@ export class QueueService {
});
}
@bindThis
public createExportAccountDataJob(user: ThinUser) {
return this.dbQueue.add('exportAccountData', {
user: { id: user.id },
}, {
removeOnComplete: true,
removeOnFail: true,
});
}
@bindThis
public createExportNotesJob(user: ThinUser) {
return this.dbQueue.add('exportNotes', {