feat: Add option to not include attachments in exported data (#5463)

This commit is contained in:
Tom Moor
2023-06-20 21:17:39 -04:00
committed by GitHub
parent 0e5a576439
commit eb62b961a4
13 changed files with 106 additions and 23 deletions

View File

@@ -13,6 +13,7 @@ type Props = {
team: Team;
user: User;
format?: FileOperationFormat;
includeAttachments?: boolean;
ip: string;
transaction: Transaction;
};
@@ -22,6 +23,7 @@ async function collectionExporter({
team,
user,
format = FileOperationFormat.MarkdownZip,
includeAttachments = true,
ip,
transaction,
}: Props) {
@@ -36,6 +38,7 @@ async function collectionExporter({
url: null,
size: 0,
collectionId,
includeAttachments,
userId: user.id,
teamId: user.teamId,
},