feat: Allow document metadata to be stored in zip comment

This commit is contained in:
Tom Moor
2020-12-27 12:36:06 -08:00
parent c8cd7fcf4a
commit 012e6b320e
4 changed files with 29 additions and 10 deletions

View File

@ -8,6 +8,8 @@ export default async function documentCreator({
collectionId,
parentDocumentId,
templateDocument,
createdAt, // allows override for import
updatedAt,
template,
index,
user,
@ -21,6 +23,8 @@ export default async function documentCreator({
parentDocumentId?: string,
templateDocument?: Document,
template?: boolean,
createdAt?: Date,
updatedAt?: Date,
index?: number,
user: User,
editorVersion?: string,
@ -33,6 +37,8 @@ export default async function documentCreator({
collectionId,
teamId: user.teamId,
userId: user.id,
createdAt,
updatedAt,
lastModifiedById: user.id,
createdById: user.id,
template,