From d8d0e47d011b0e0b6f921e158fc9062dda2fbcc5 Mon Sep 17 00:00:00 2001 From: Marius Grigoriu Date: Fri, 2 Sep 2016 04:32:17 -0700 Subject: [PATCH] fix typo in toListPosgres --- store/datastore/repos.go | 2 +- store/datastore/users.go | 4 ++-- store/datastore/utils.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/store/datastore/repos.go b/store/datastore/repos.go index 6d053ca5..c0e5c649 100644 --- a/store/datastore/repos.go +++ b/store/datastore/repos.go @@ -28,7 +28,7 @@ func (db *datastore) GetRepoListOf(listof []*model.RepoLite) ([]*model.Repo, err ) switch meddler.Default { case meddler.PostgreSQL: - stmt, args = toListPosgres(listof) + stmt, args = toListPostgres(listof) default: stmt, args = toList(listof) } diff --git a/store/datastore/users.go b/store/datastore/users.go index 39dde54e..0fe8d668 100644 --- a/store/datastore/users.go +++ b/store/datastore/users.go @@ -35,7 +35,7 @@ func (db *datastore) GetUserFeed(listof []*model.RepoLite) ([]*model.Feed, error ) switch meddler.Default { case meddler.PostgreSQL: - stmt, args = toListPosgres(listof) + stmt, args = toListPostgres(listof) default: stmt, args = toList(listof) } @@ -55,7 +55,7 @@ func (db *datastore) GetUserFeedLatest(listof []*model.RepoLite) ([]*model.Feed, ) switch meddler.Default { case meddler.PostgreSQL: - stmt, args = toListPosgres(listof) + stmt, args = toListPostgres(listof) default: stmt, args = toList(listof) } diff --git a/store/datastore/utils.go b/store/datastore/utils.go index dacc6d22..79153f76 100644 --- a/store/datastore/utils.go +++ b/store/datastore/utils.go @@ -51,7 +51,7 @@ func toList(listof []*model.RepoLite) (string, []interface{}) { // helper function that converts a simple repository list // to a sql IN statement compatible with postgres. -func toListPosgres(listof []*model.RepoLite) (string, []interface{}) { +func toListPostgres(listof []*model.RepoLite) (string, []interface{}) { var size = len(listof) var qs = make([]string, size, size) var in = make([]interface{}, size, size)