diff --git a/index.js b/index.js index 0961108..4cf7213 100644 --- a/index.js +++ b/index.js @@ -426,7 +426,7 @@ function questionMarks(list){ * Return a list of tags for the given list of article ids * @param {Database} db - SQLite3 database instance * @param {Array} ids - a list of article ids - * @returns {Array} A list of [article.id, tag.name] pairs + * @returns {Object} tags grouped by article.id */ async function getTagsForArticles(db, ids) { const tags = db.prepare(`