Skip to content

Commit

Permalink
REPLACE appwrite ListCollections to ListAllCollections method. REPLAC…
Browse files Browse the repository at this point in the history
…E appwrite SDK from v0.0.2 to 0.0.3.
  • Loading branch information
karminski committed Sep 30, 2023
1 parent 5e9fea5 commit 8d78d03
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ require (
github.com/gorilla/mux v1.8.0
github.com/gorilla/websocket v1.5.0
github.com/icholy/digest v0.1.22
github.com/illacloud/appwrite-sdk-go v0.0.2
github.com/illacloud/appwrite-sdk-go v0.0.3
github.com/jackc/pgx/v5 v5.4.3
github.com/microsoft/go-mssqldb v1.5.0
github.com/minio/minio-go/v7 v7.0.62
Expand Down
2 changes: 0 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -353,8 +353,6 @@ github.com/hashicorp/memberlist v0.1.3/go.mod h1:ajVTdAv/9Im8oMAAj5G31PhhMCZJV2p
github.com/hashicorp/serf v0.8.2/go.mod h1:6hOLApaqBFA1NXqRQAsxw9QxuDEvNxSQRwA/JwenrHc=
github.com/icholy/digest v0.1.22 h1:dRIwCjtAcXch57ei+F0HSb5hmprL873+q7PoVojdMzM=
github.com/icholy/digest v0.1.22/go.mod h1:uLAeDdWKIWNFMH0wqbwchbTQOmJWhzSnL7zmqSPqEEc=
github.com/illacloud/appwrite-sdk-go v0.0.2 h1:pT8eZ+VrdyYsl/vL2MVd5El/zDJhpGoanghB7tUCx7g=
github.com/illacloud/appwrite-sdk-go v0.0.2/go.mod h1:A2+9foOV/ovpdB4GtZAoyD9hgmmu/NvBFhrfTl+ODJs=
github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8=
github.com/jackc/pgpassfile v1.0.0 h1:/6Hmqy13Ss2zCq62VdNG8tM1wchn8zjSGOBJ6icpsIM=
github.com/jackc/pgpassfile v1.0.0/go.mod h1:CEx0iS5ambNFdcRtxPj5JhEz+xB6uRky5eyVu/W2HEg=
Expand Down
3 changes: 1 addition & 2 deletions src/actionruntime/appwrite/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,7 @@ func (a *Connector) GetMetaInfo(resourceOpts map[string]interface{}) (common.Met
}

// get collections
var EmptyArray = []interface{}{}
colls, err := db.ListCollections(a.Resource.DatabaseID, EmptyArray, "[SEARCH]")
colls, err := db.ListAllCollections(a.Resource.DatabaseID)
fmt.Printf("[DUMP] GetMetaInfo.colls: %+v\n", colls)
if colls != nil {
fmt.Printf("[DUMP] GetMetaInfo.colls.Result: %+v\n", colls.Result)
Expand Down

0 comments on commit 8d78d03

Please sign in to comment.