Skip to content

Commit

Permalink
remove non existing fields in fixtures script
Browse files Browse the repository at this point in the history
  • Loading branch information
Philippe Bentegeac authored and Philippe Bentegeac committed Feb 4, 2025
1 parent b5ed9ce commit 1f1c096
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions demo/api/src/db/fixtures/fixtures.console.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import { PageInput } from "@src/documents/pages/dto/page.input";
import { Page } from "@src/documents/pages/entities/page.entity";
import { PageTreeNodeScope } from "@src/page-tree/dto/page-tree-node-scope";
import { PageTreeNodeCategory } from "@src/page-tree/page-tree-node-category";
import { UserGroup } from "@src/user-groups/user-group";
import faker from "faker";
import { Command, Console } from "nestjs-console";
import slugify from "slugify";
Expand Down Expand Up @@ -104,7 +103,6 @@ export class FixturesConsole {
id: attachedDocumentIds[0],
type: "Page",
},
userGroup: UserGroup.All,
},
PageTreeNodeCategory.MainNavigation,
scope,
Expand All @@ -120,7 +118,6 @@ export class FixturesConsole {
slug: "sub",
parentId: node.id,
attachedDocument: { id: attachedDocumentIds[1], type: "Page" },
userGroup: UserGroup.All,
},
PageTreeNodeCategory.MainNavigation,
scope,
Expand All @@ -137,7 +134,6 @@ export class FixturesConsole {
id: attachedDocumentIds[2],
type: "Page",
},
userGroup: UserGroup.All,
},
PageTreeNodeCategory.MainNavigation,
scope,
Expand All @@ -153,7 +149,6 @@ export class FixturesConsole {
attachedDocument: {
type: "Page",
},
userGroup: UserGroup.All,
},
PageTreeNodeCategory.MainNavigation,
scope,
Expand All @@ -170,7 +165,6 @@ export class FixturesConsole {
id: attachedDocumentIds[3],
type: "Link",
},
userGroup: UserGroup.All,
},
PageTreeNodeCategory.MainNavigation,
scope,
Expand All @@ -187,7 +181,6 @@ export class FixturesConsole {
id: attachedDocumentIds[4],
type: "Page",
},
userGroup: UserGroup.All,
},
PageTreeNodeCategory.MainNavigation,
scope,
Expand Down Expand Up @@ -238,7 +231,6 @@ export class FixturesConsole {
slug: slugify(name),
parentId: level > 0 ? faker.random.arrayElement(pages[level - 1]).id : undefined,
attachedDocument: { type: "Page" },
userGroup: UserGroup.All,
},
PageTreeNodeCategory.MainNavigation,
{
Expand Down

0 comments on commit 1f1c096

Please sign in to comment.