From e1a47258f9e5314e65816d732d5a3181cb3f1657 Mon Sep 17 00:00:00 2001 From: Artem Date: Wed, 23 Jun 2021 16:51:19 +0300 Subject: [PATCH] Hasura: track views fix --- hasura/hasura.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hasura/hasura.go b/hasura/hasura.go index 4776bbb..2afcc0a 100644 --- a/hasura/hasura.go +++ b/hasura/hasura.go @@ -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 + } } }