We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1168b05 commit e4713e4Copy full SHA for e4713e4
server/controllers/authors.js
@@ -214,7 +214,11 @@ exports.getAuthor = ({ params: { ORCID } }, res) => {
214
res.status(500).json(message)
215
})
216
} else {
217
- res.status(500)
+ let author_with_documents_count = author.get({ plain: true })
218
+
219
+ author_with_documents_count.hIndex = 0
220
+ author_with_documents_count.documents_count = 0
221
+ res.json(author_with_documents_count)
222
}
223
224
res.sendStatus(404)
0 commit comments