mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-16 04:54:42 +00:00
register instance types in feeds
This commit is contained in:
@@ -52,6 +52,10 @@ func NewFeeds(postsService posts.PostsService) *Feeds {
|
||||
entriesURLIndex: entriesURLIndex,
|
||||
}
|
||||
|
||||
// register model instances
|
||||
f.feeds.Register(new(feeds.Feed))
|
||||
f.entries.Register(new(feeds.Entry))
|
||||
|
||||
go f.crawl()
|
||||
return f
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user