chore: rename collection creatorId to createdById (#1794)

This commit is contained in:
Rubén Moya
2021-01-12 08:17:31 +01:00
committed by GitHub
parent d258082c5f
commit 47369dd968
10 changed files with 46 additions and 27 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,16 +61,16 @@ 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",
});