Merge main

This commit is contained in:
Tom Moor
2021-02-07 12:58:17 -08:00
233 changed files with 7243 additions and 4147 deletions

View File

@@ -113,7 +113,7 @@ export async function buildCollection(overrides: Object = {}) {
return Collection.create({
name: `Test Collection ${count}`,
description: "Test collection description",
creatorId: overrides.userId,
createdById: overrides.userId,
...overrides,
});
}

View File

@@ -61,20 +61,20 @@ const seed = async () => {
name: "Collection",
urlId: "collection",
teamId: team.id,
creatorId: user.id,
createdById: user.id,
});
const document = await Document.create({
parentDocumentId: null,
collectionId: collection.id,
teamId: team.id,
userId: collection.creatorId,
lastModifiedById: collection.creatorId,
createdById: collection.creatorId,
userId: collection.createdById,
lastModifiedById: collection.createdById,
createdById: collection.createdById,
title: "First ever document",
text: "# Much test support",
});
await document.publish();
await document.publish(collection.createdById);
await collection.reload();
return {