Allow shared channel remotes endpoint to be filtered by confirmation status (#28213)

* Allow shared channel remotes endpoint to be filtered by confirmation status

* Adds tests
Этот коммит содержится в:
Miguel de la Cruz
2024-09-18 13:36:43 +02:00
коммит произвёл GitHub
родитель 70cb1934e9
Коммит 7a0019b63a
5 изменённых файлов: 77 добавлений и 17 удалений

Просмотреть файл

@@ -116,10 +116,12 @@ func getSharedChannelRemotesByRemoteCluster(c *Context, w http.ResponseWriter, r
}
filter := model.SharedChannelRemoteFilterOpts{
RemoteId: c.Params.RemoteId,
ExcludeHome: c.Params.ExcludeHome,
ExcludeRemote: c.Params.ExcludeRemote,
IncludeDeleted: c.Params.IncludeDeleted,
RemoteId: c.Params.RemoteId,
IncludeUnconfirmed: c.Params.IncludeUnconfirmed,
ExcludeConfirmed: c.Params.ExcludeConfirmed,
ExcludeHome: c.Params.ExcludeHome,
ExcludeRemote: c.Params.ExcludeRemote,
IncludeDeleted: c.Params.IncludeDeleted,
}
sharedChannelRemotes, err := c.App.GetSharedChannelRemotes(c.Params.Page, c.Params.PerPage, filter)
if err != nil {