From 2e5f51a6dc4ae3f8298ea7bb8928ee729756b8fc Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Wed, 29 Jul 2020 19:42:50 -0700 Subject: [PATCH] chore: Record templateId against doc from template --- server/api/documents.js | 1 + 1 file changed, 1 insertion(+) diff --git a/server/api/documents.js b/server/api/documents.js index c36f1f9add..d989449f4d 100644 --- a/server/api/documents.js +++ b/server/api/documents.js @@ -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, });