Store import<->document relationship (#4415)

* Store import<->document relationship

* Update 20221112152649-import-document-relationship.js

* Store importId on collection, UI tweaks on import screen
This commit is contained in:
Tom Moor
2022-11-12 08:22:41 -08:00
committed by GitHub
parent cafe4ed848
commit 622f464b9f
10 changed files with 78 additions and 7 deletions

View File

@@ -9,6 +9,7 @@ export default async function documentCreator({
collectionId,
parentDocumentId,
templateDocument,
importId,
createdAt,
// allows override for import
updatedAt,
@@ -26,6 +27,7 @@ export default async function documentCreator({
publish?: boolean;
collectionId: string;
parentDocumentId?: string;
importId?: string;
templateDocument?: Document | null;
publishedAt?: Date;
template?: boolean;
@@ -54,6 +56,7 @@ export default async function documentCreator({
template,
templateId,
publishedAt,
importId,
title: templateDocument ? templateDocument.title : title,
text: templateDocument ? templateDocument.text : text,
},