fix: Don't trigger email and slack notifications when mass importing

feat: Show success message after import
This commit is contained in:
Tom Moor
2020-12-28 18:02:58 -08:00
parent 2787e56de3
commit d79933887d
10 changed files with 47 additions and 7 deletions

View File

@@ -114,6 +114,7 @@ export default async function documentBatchImporter({
}
const document = await documentCreator({
source: "import",
title,
text,
publish: true,
@@ -134,6 +135,7 @@ export default async function documentBatchImporter({
if (item.type === "attachment") {
const buffer = await item.item.async("nodebuffer");
const attachment = await attachmentCreator({
source: "import",
name: item.name,
type,
buffer,