chore: Record templateId against doc from template

This commit is contained in:
Tom Moor committed 2020-07-29 19:42:50 -07:00
1 parent d8b7960063
commit 2e5f51a6dc
1 file changed
+1
+1
View File
@@ -734,6 +734,7 @@ router.post("documents.create", auth(), async ctx => {
lastModifiedById: user.id,
createdById: user.id,
template,
templateId: templateDocument ? templateDocument.id : undefined,
title: templateDocument ? templateDocument.title : title,
text: templateDocument ? templateDocument.text : text,
});