Skip to content

Commit

Permalink
Hasura: track views fix
Browse files Browse the repository at this point in the history
  • Loading branch information
aopoltorzhicky committed Jun 23, 2021
1 parent fc5a591 commit e1a4725
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hasura/hasura.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ func Create(hasura config.Hasura, cfg config.Database, views []string, models ..
log.Info("Tracking views...")
for i := range views {
if err := api.TrackTable("public", views[i]); err != nil {
return err
if !strings.Contains(err.Error(), "view/table already tracked") {
return err
}
}
}

Expand Down

0 comments on commit e1a4725

Please sign in to comment.