fix: Reassign user on unpublish (#1857)

* findOne -> findByPk
This commit is contained in:
Tom Moor
2021-01-30 18:31:08 -08:00
committed by GitHub
parent eeb7650941
commit 91ee3e62f2
5 changed files with 37 additions and 9 deletions

View File

@@ -74,7 +74,7 @@ const seed = async () => {
title: "First ever document",
text: "# Much test support",
});
await document.publish();
await document.publish(collection.createdById);
await collection.reload();
return {