This is an automated email from the ASF dual-hosted git repository.

dangogh pushed a commit to branch master
in repository

commit e08cd94261a738b1d644ccd6a217b0d2b8249e04
Author: Dewayne Richardson <>
AuthorDate: Thu Feb 22 14:41:26 2018 -0700

    fixed to use Creator instead of Inserter
 traffic_ops/traffic_ops_golang/region/regions.go | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/traffic_ops/traffic_ops_golang/region/regions.go 
index fae8258..52d881d 100644
--- a/traffic_ops/traffic_ops_golang/region/regions.go
+++ b/traffic_ops/traffic_ops_golang/region/regions.go
@@ -181,14 +181,14 @@ func (region *TORegion) Update(db *sqlx.DB, user 
auth.CurrentUser) (error, tc.Ap
        return nil, tc.NoError
-//The TORegion implementation of the Inserter interface
-//all implementations of Inserter should use transactions and return the 
proper errorType
+//The TORegion implementation of the Creator interface
+//all implementations of Creator should use transactions and return the proper 
 //ParsePQUniqueConstraintError is used to determine if a region with 
conflicting values exists
 //if so, it will return an errorType of DataConflict and the type should be 
appended to the
 //generic error message returned
 //The insert sql returns the id and lastUpdated values of the newly inserted 
region and have
 //to be added to the struct
-func (region *TORegion) Insert(db *sqlx.DB, user auth.CurrentUser) (error, 
tc.ApiErrorType) {
+func (region *TORegion) Create(db *sqlx.DB, user auth.CurrentUser) (error, 
tc.ApiErrorType) {
        rollbackTransaction := true
        tx, err := db.Beginx()
        defer func() {

To stop receiving notification emails like this one, please contact

Reply via email to