Skip to content
This repository was archived by the owner on Oct 11, 2024. It is now read-only.

Fix to work with latest GQL and SQL changes #57

Merged
merged 1 commit into from
Sep 21, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions clients/dashboard/apis.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import (
"fmt"

"github.com/TykTechnologies/tyk-sync/clients/objects"
"github.com/TykTechnologies/tyk/apidef"
"github.com/levigross/grequests"
"github.com/ongoingio/urljoin"
uuid "github.com/satori/go.uuid"
"gopkg.in/mgo.v2/bson"
)

type APIResponse struct {
Expand Down Expand Up @@ -122,7 +122,7 @@ func (c *Client) CreateAPI(def *objects.DBApiDefinition) (string, error) {

// Create will always reset the API ID on dashboard, if we want to retain it, we must use UPDATE
if retainedIDs {
def.Id = bson.ObjectIdHex(status.Meta)
def.Id = apidef.ObjectIdHex(status.Meta)
if err := c.UpdateAPI(def); err != nil {
fmt.Printf("Problem trying to retain API ID: %v\n", err)
}
Expand Down
9 changes: 0 additions & 9 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,16 @@ module github.com/TykTechnologies/tyk-sync
go 1.13

require (
github.com/TykTechnologies/gojsonschema v0.0.0-20170222154038-dcb3e4bb7990 // indirect
github.com/TykTechnologies/tyk v1.9.2-0.20210915075010-bc5243e1fdae
github.com/clbanning/mxj v1.8.4 // indirect
github.com/franela/goblin v0.0.0-20201006155558-6240afcb2eb7 // indirect
github.com/franela/goreq v0.0.0-20171204163338-bcd34c9993f8 // indirect
github.com/jensneuse/graphql-go-tools v1.20.2
github.com/kataras/go-errors v0.0.3
github.com/levigross/grequests v0.0.0-20190908174114-253788527a1a
github.com/lonelycode/go-uuid v0.0.0-20141202165402-ed3ca8a15a93 // indirect
github.com/lonelycode/osin v0.0.0-20160423095202-da239c9dacb6 // indirect
github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b // indirect
github.com/ongoingio/urljoin v0.0.0-20140909071054-8d88f7c81c3c
github.com/onsi/ginkgo v1.14.2 // indirect
github.com/onsi/gomega v1.10.4 // indirect
github.com/pmylund/go-cache v2.1.0+incompatible // indirect
github.com/satori/go.uuid v1.2.0
github.com/spf13/cobra v1.0.0
github.com/x-cray/logrus-prefixed-formatter v0.5.2 // indirect
github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb // indirect
github.com/xeipuuv/gojsonschema v1.2.0 // indirect
gopkg.in/mgo.v2 v2.0.0-20190816093944-a6b53ec6cb22
gopkg.in/src-d/go-billy.v4 v4.3.2
Expand Down
Loading