Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
nicpottier committed Oct 14, 2019
1 parent c8d8b4d commit c583f16
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions models/classifiers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
4 changes: 2 additions & 2 deletions models/http_logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit c583f16

Please sign in to comment.