Skip to content

Commit

Permalink
Add data provider to articles.model.js (#378)
Browse files Browse the repository at this point in the history
  • Loading branch information
danieleguido authored Apr 18, 2024
1 parent 4a52d52 commit 10554bd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/models/articles.model.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ class Article extends BaseArticle {
// dl = 0,
issue = null,
// labels = [],

dataProvider = null,
newspaper = null,

pages = [],
Expand Down Expand Up @@ -338,6 +338,9 @@ class Article extends BaseArticle {
} else if (issue) {
this.issue = new Issue({ uid: issue })
}

this.dataProvider = dataProvider

if (newspaper instanceof Newspaper) {
this.newspaper = newspaper
} else {
Expand Down Expand Up @@ -668,6 +671,8 @@ class Article extends BaseArticle {
content: Article.getUncertainField(doc, 'content'),
size: doc.content_length_i,

dataProvider: doc.meta_partnerid_s,

newspaper: new Newspaper({
uid: doc.meta_journal_s,
}),
Expand Down

0 comments on commit 10554bd

Please sign in to comment.