diff options
Diffstat (limited to 'lib/models/summary.js')
-rw-r--r-- | lib/models/summary.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/models/summary.js b/lib/models/summary.js index 079c535..444c191 100644 --- a/lib/models/summary.js +++ b/lib/models/summary.js @@ -66,6 +66,17 @@ Summary.prototype.getByPath = function(filePath) { }; /** + Return the first article + + @return {Article} +*/ +Summary.prototype.getFirstArticle = function() { + return this.getArticle(function(article) { + return true; + }); +}; + +/** Render summary as text @return {Promise<String>} |