Refactor fetch functions to use new FullData.Insert{Feed,Page} funcs

This commit is contained in:
nytpu
2021-03-18 10:33:58 -06:00
parent 0441fc9349
commit a3a427b9ee
4 changed files with 10 additions and 39 deletions
+2 -2
View File
@@ -72,7 +72,7 @@ func httpFeed(data *core.FullData, remote *url.URL, title string) error {
return err
}
InsertFeed(data, feed, remote)
data.InsertFeed(feed, remote)
return nil
}
@@ -98,6 +98,6 @@ func httpPage(data *core.FullData, remote *url.URL, title string) error {
page.Hash = newHash
page.Updated = time.Now()
InsertPage(data, &page, remote)
data.InsertPage(&page, remote)
return nil
}