Migrate atlasId -> collectionId
This commit is contained in:
@@ -81,9 +81,9 @@ export async function buildDocument(overrides: Object = {}) {
|
||||
overrides.userId = user.id;
|
||||
}
|
||||
|
||||
if (!overrides.atlasId) {
|
||||
if (!overrides.collectionId) {
|
||||
const collection = await buildCollection(overrides);
|
||||
overrides.atlasId = collection.id;
|
||||
overrides.collectionId = collection.id;
|
||||
}
|
||||
|
||||
return Document.create({
|
||||
|
||||
@@ -65,7 +65,7 @@ const seed = async () => {
|
||||
|
||||
const document = await Document.create({
|
||||
parentDocumentId: null,
|
||||
atlasId: collection.id,
|
||||
collectionId: collection.id,
|
||||
teamId: team.id,
|
||||
userId: collection.creatorId,
|
||||
lastModifiedById: collection.creatorId,
|
||||
|
||||
Reference in New Issue
Block a user