This commit is contained in:
Tom Moor
2020-12-17 21:19:31 -08:00
parent 5012104a10
commit b98e4bb1ff
5 changed files with 171 additions and 9 deletions

View File

@ -12,7 +12,7 @@ export default async function documentCreator({
index,
user,
editorVersion,
ip
ip,
}: {
title: string,
text: string,
@ -24,7 +24,7 @@ export default async function documentCreator({
index?: number,
user: User,
editorVersion?: string,
ip: string
ip: string,
}): Document {
const templateId = templateDocument ? templateDocument.id : undefined;
let document = await Document.create({
@ -71,4 +71,4 @@ export default async function documentCreator({
return Document.findOne({
where: { id: document.id, publishedAt: document.publishedAt },
});
}
}