Allow setting createdAt, emoji properties through documents.create (#5864)

This commit is contained in:
Tom Moor
2023-09-21 22:37:27 -04:00
committed by GitHub
parent 8833e578f1
commit 76862b626b
4 changed files with 60 additions and 11 deletions

View File

@@ -75,7 +75,7 @@ export default async function documentCreator({
teamId: user.teamId,
userId: user.id,
createdAt,
updatedAt,
updatedAt: updatedAt ?? createdAt,
lastModifiedById: user.id,
createdById: user.id,
template,