From c583f165c69e5c8da73c499d67be6f8f4393bd8a Mon Sep 17 00:00:00 2001 From: Nic Pottier Date: Mon, 14 Oct 2019 09:54:41 -0700 Subject: [PATCH] tweaks --- models/classifiers.go | 7 ++++--- models/http_logs.go | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/models/classifiers.go b/models/classifiers.go index f63f126ac..aaf920286 100644 --- a/models/classifiers.go +++ b/models/classifiers.go @@ -19,10 +19,11 @@ import ( // ClassifierID is our type for classifier ids type ClassifierID null.Int -// NilClassifierID is our const for a nil classifier ID -const NilClassifierID = ClassifierID(0) - const ( + // NilClassifierID is our const for a nil classifier ID + NilClassifierID = ClassifierID(0) + + // Our classifier types ClassifierTypeWit = "wit" ClassifierTypeLuis = "luis" diff --git a/models/http_logs.go b/models/http_logs.go index a6069e7a7..def20ff2a 100644 --- a/models/http_logs.go +++ b/models/http_logs.go @@ -8,7 +8,7 @@ import ( "github.com/nyaruka/null" ) -// HTTPLogID is our type for classifier ids +// HTTPLogID is our type for HTTPLog ids type HTTPLogID null.Int // HTTPLogType is the type for the type of log this is @@ -61,7 +61,7 @@ INSERT INTO request_logs_httplog( log_type, org_id, classifier_id, url, requ RETURNING id ` -// InsertHTTPLogs inserts the passed in classifiers returning any errors encountered +// InsertHTTPLogs inserts the passed in logs returning any errors encountered func InsertHTTPLogs(ctx context.Context, tx Queryer, logs []*HTTPLog) error { if len(logs) == 0 { return nil