Add:Persist RSS feeds in db #696, Update:RSS feed data model

This commit is contained in:
advplyr 2022-06-07 18:29:43 -05:00
parent 881baa818d
commit fbbceaa642
9 changed files with 366 additions and 130 deletions

View file

@ -378,7 +378,7 @@ class LibraryItemController {
return res.sendStatus(500)
}
const feedData = this.rssFeedManager.openFeedForItem(req.user, req.libraryItem, req.body)
const feedData = await this.rssFeedManager.openFeedForItem(req.user, req.libraryItem, req.body)
if (feedData.error) {
return res.json({
success: false,
@ -398,7 +398,7 @@ class LibraryItemController {
return res.sendStatus(500)
}
this.rssFeedManager.closeFeedForItem(req.params.id)
await this.rssFeedManager.closeFeedForItem(req.params.id)
res.sendStatus(200)
}