fix: Don't trigger email and slack notifications when mass importing
feat: Show success message after import
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user