@@ -9,15 +9,15 @@ import (
99
1010 "github.com/google/uuid"
1111
12- "github.com/theandrew168/bloggulus/backend/finder"
1312 "github.com/theandrew168/bloggulus/backend/job"
1413 "github.com/theandrew168/bloggulus/backend/postgres"
14+ "github.com/theandrew168/bloggulus/backend/query"
1515 "github.com/theandrew168/bloggulus/backend/repository"
1616 "github.com/theandrew168/bloggulus/backend/web/page"
1717 "github.com/theandrew168/bloggulus/backend/web/util"
1818)
1919
20- func HandleBlogList (find * finder. Finder ) http.Handler {
20+ func HandleBlogList (qry * query. Query ) http.Handler {
2121 tmpl := page .NewBlogs ()
2222 return http .HandlerFunc (func (w http.ResponseWriter , r * http.Request ) {
2323 account , isLoggedIn := util .GetContextAccount (r )
@@ -26,7 +26,7 @@ func HandleBlogList(find *finder.Finder) http.Handler {
2626 return
2727 }
2828
29- blogs , err := find .ListBlogsForAccount (account )
29+ blogs , err := qry .ListBlogsForAccount (account )
3030 if err != nil {
3131 util .ListErrorResponse (w , r , err )
3232 return
@@ -49,7 +49,7 @@ func HandleBlogList(find *finder.Finder) http.Handler {
4949 })
5050}
5151
52- func HandleBlogCreateForm (repo * repository.Repository , find * finder. Finder , syncService * job.SyncService ) http.Handler {
52+ func HandleBlogCreateForm (repo * repository.Repository , syncService * job.SyncService ) http.Handler {
5353 return http .HandlerFunc (func (w http.ResponseWriter , r * http.Request ) {
5454 account , isLoggedIn := util .GetContextAccount (r )
5555 if ! isLoggedIn {
@@ -153,7 +153,7 @@ func HandleBlogCreateForm(repo *repository.Repository, find *finder.Finder, sync
153153 })
154154}
155155
156- func HandleBlogFollowForm (repo * repository.Repository , find * finder. Finder ) http.Handler {
156+ func HandleBlogFollowForm (repo * repository.Repository ) http.Handler {
157157 tmpl := page .NewBlogs ()
158158 return http .HandlerFunc (func (w http.ResponseWriter , r * http.Request ) {
159159 account , isLoggedIn := util .GetContextAccount (r )
@@ -204,7 +204,7 @@ func HandleBlogFollowForm(repo *repository.Repository, find *finder.Finder) http
204204 data := page.BlogsBlogData {
205205 BaseData : util .GetTemplateBaseData (r , w ),
206206
207- BlogForAccount : finder .BlogForAccount {
207+ BlogForAccount : query .BlogForAccount {
208208 ID : blog .ID (),
209209 Title : blog .Title (),
210210 SiteURL : blog .SiteURL (),
@@ -221,7 +221,7 @@ func HandleBlogFollowForm(repo *repository.Repository, find *finder.Finder) http
221221 })
222222}
223223
224- func HandleBlogUnfollowForm (repo * repository.Repository , find * finder. Finder ) http.Handler {
224+ func HandleBlogUnfollowForm (repo * repository.Repository ) http.Handler {
225225 tmpl := page .NewBlogs ()
226226 return http .HandlerFunc (func (w http.ResponseWriter , r * http.Request ) {
227227 account , isLoggedIn := util .GetContextAccount (r )
@@ -272,7 +272,7 @@ func HandleBlogUnfollowForm(repo *repository.Repository, find *finder.Finder) ht
272272 data := page.BlogsBlogData {
273273 BaseData : util .GetTemplateBaseData (r , w ),
274274
275- BlogForAccount : finder .BlogForAccount {
275+ BlogForAccount : query .BlogForAccount {
276276 ID : blog .ID (),
277277 Title : blog .Title (),
278278 SiteURL : blog .SiteURL (),
0 commit comments