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