@@ -200,21 +200,18 @@ func main() {
200200 **/
201201 logger .Info ("Creating activities..." )
202202
203- activity1 , err := svc .Activity .Create (ctx , pool , & db.ActivityCreateParams {
204- ProjectID : internal .ProjectIDByName [models .ProjectDemo ],
203+ activity1 , err := svc .Activity .Create (ctx , pool , models .ProjectDemo , & db.ActivityCreateParams {
205204 Name : "Activity 1" ,
206205 Description : "Activity 1 description" ,
207206 IsProductive : true ,
208207 })
209208 handleError (err , activity1 )
210- activity2 , err := svc .Activity .Create (ctx , pool , & db.ActivityCreateParams {
211- ProjectID : internal .ProjectIDByName [models .ProjectDemo ],
209+ activity2 , err := svc .Activity .Create (ctx , pool , models .ProjectDemo , & db.ActivityCreateParams {
212210 Name : "Activity 2" ,
213211 Description : "Activity 2 description" ,
214212 })
215213 handleError (err , activity2 )
216- activity3 , err := svc .Activity .Create (ctx , pool , & db.ActivityCreateParams {
217- ProjectID : internal .ProjectIDByName [models .ProjectDemo ],
214+ activity3 , err := svc .Activity .Create (ctx , pool , models .ProjectDemo , & db.ActivityCreateParams {
218215 Name : "Activity 3" ,
219216 Description : "Activity 3 description" ,
220217 })
@@ -459,8 +456,10 @@ func main() {
459456 "uuid.NullUUID" : "null | string /* uuid */" ,
460457 },
461458 // to import actual values from models package, do it explicitly
462- Frontmatter : `import type * as models from "client/gen/model";` ,
463- OutputPath : path .Join (e2eTestDataDir , "initial-data.ts" ),
459+ Frontmatter : `import type * as models from "client/gen/model";
460+ import type * as EntityIDs from "./entity-ids";
461+ ` ,
462+ OutputPath : path .Join (e2eTestDataDir , "initial-data.ts" ),
464463 },
465464 },
466465 }
@@ -487,6 +486,7 @@ func main() {
487486 tt := make ([]e2e.Team , len (teams ))
488487 for i , t := range teams {
489488 tt [i ] = e2e.Team {
489+ TeamID : t .TeamID ,
490490 Name : t .Name ,
491491 ProjectName : t .ProjectJoin .Name ,
492492 }
0 commit comments