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

@@ -181,7 +181,7 @@ Team.prototype.provisionFirstCollection = async function (userId) {
title,
text,
});
await document.publish();
await document.publish(collection.createdById);
}
};