Skip to content

Commit

Permalink
modfiy member parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
hexaforce committed Feb 12, 2025
1 parent d605405 commit aab0159
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions server/e2e/seeder.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ var (
pAlias = "PROJECT_ALIAS"
sID = id.NewSceneID()
now = time.Date(2022, time.January, 1, 0, 0, 0, 0, time.UTC)

storyID = storytelling.NewStoryID()
pageID = storytelling.NewPageID()
blockID = storytelling.NewBlockID()
)

func baseSeeder(ctx context.Context, r *repo.Container, f gateway.File) error {
Expand Down Expand Up @@ -287,7 +291,7 @@ func addStory(ctx context.Context, r *repo.Container) error {
}
pages = append(pages, page)
story, err := storytelling.NewStory().
NewID().
ID(storyID).
Title("test page").
Pages(storytelling.NewPageList(pages)).
Scene(sID).
Expand Down Expand Up @@ -323,7 +327,7 @@ func _createPage(ctx context.Context, r *repo.Container) (*storytelling.Page, er
blocks = append(blocks, block)

return storytelling.NewPage().
NewID().
ID(pageID).
Title("Untitled").
Blocks(blocks).
Swipeable(false).
Expand Down Expand Up @@ -352,8 +356,9 @@ func _createBlock(ctx context.Context, r *repo.Container) (*storytelling.Block,
if err = r.Property.Save(ctx, prop); err != err {
return nil, err
}

return storytelling.NewBlock().
NewID().
ID(blockID).
Plugin(plgID).
Extension(eId).
Property(prop.ID()).
Expand Down

0 comments on commit aab0159

Please sign in to comment.