initialize CSV Importer

This commit is contained in:
Hayden 2022-09-06 11:15:07 -08:00
parent 1ab7435bf1
commit a903880f82
12 changed files with 600 additions and 5 deletions

View file

@ -78,6 +78,10 @@ func (r *LocationRepository) Create(ctx context.Context, groupdId uuid.UUID, dat
SetGroupID(groupdId).
Save(ctx)
if err != nil {
return nil, err
}
location.Edges.Group = &ent.Group{ID: groupdId} // bootstrap group ID
return location, err
}