mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-24 08:02:18 +02:00
Always return an empty collection within feed
This commit is contained in:
parent
06d3799787
commit
2cfdf8b294
@ -27,10 +27,11 @@ func (db *datastore) GetUserList() ([]*model.User, error) {
|
|||||||
|
|
||||||
func (db *datastore) GetUserFeed(listof []*model.RepoLite) ([]*model.Feed, error) {
|
func (db *datastore) GetUserFeed(listof []*model.RepoLite) ([]*model.Feed, error) {
|
||||||
var (
|
var (
|
||||||
feed []*model.Feed
|
|
||||||
args []interface{}
|
args []interface{}
|
||||||
stmt string
|
stmt string
|
||||||
err error
|
err error
|
||||||
|
|
||||||
|
feed = []*model.Feed{}
|
||||||
)
|
)
|
||||||
switch meddler.Default {
|
switch meddler.Default {
|
||||||
case meddler.PostgreSQL:
|
case meddler.PostgreSQL:
|
||||||
@ -46,10 +47,11 @@ func (db *datastore) GetUserFeed(listof []*model.RepoLite) ([]*model.Feed, error
|
|||||||
|
|
||||||
func (db *datastore) GetUserFeedLatest(listof []*model.RepoLite) ([]*model.Feed, error) {
|
func (db *datastore) GetUserFeedLatest(listof []*model.RepoLite) ([]*model.Feed, error) {
|
||||||
var (
|
var (
|
||||||
feed []*model.Feed
|
|
||||||
args []interface{}
|
args []interface{}
|
||||||
stmt string
|
stmt string
|
||||||
err error
|
err error
|
||||||
|
|
||||||
|
feed = []*model.Feed{}
|
||||||
)
|
)
|
||||||
switch meddler.Default {
|
switch meddler.Default {
|
||||||
case meddler.PostgreSQL:
|
case meddler.PostgreSQL:
|
||||||
|
Loading…
Reference in New Issue
Block a user