From e7c75b3d83eda49c346a5ac691ab927a3f04dd28 Mon Sep 17 00:00:00 2001 From: Kailash Nadh Date: Fri, 4 Jan 2019 12:36:55 +0530 Subject: [PATCH] Fix the accidentally deleted Lists field in Campaign (!) --- models/models.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/models/models.go b/models/models.go index 77145b1..53e1798 100644 --- a/models/models.go +++ b/models/models.go @@ -9,6 +9,7 @@ import ( "strings" "github.com/jmoiron/sqlx" + "github.com/jmoiron/sqlx/types" "github.com/lib/pq" null "gopkg.in/volatiletech/null.v6" @@ -133,6 +134,7 @@ type Campaign struct { Tags pq.StringArray `db:"tags" json:"tags"` TemplateID int `db:"template_id" json:"template_id"` MessengerID string `db:"messenger" json:"messenger"` + Lists types.JSONText `json:"lists"` View int `db:"views" json:"views"` Clicks int `db:"clicks" json:"clicks"`