Skip to content

Commit 1c574ba

Browse files
committed
feat: v5.0.2
1 parent 8f34963 commit 1c574ba

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nodepress",
3-
"version": "5.0.1",
3+
"version": "5.0.2",
44
"description": "RESTful API service for Surmon.me blog",
55
"author": "Surmon",
66
"license": "MIT",

src/modules/article/article.controller.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,10 @@ export class ArticleController {
113113
}
114114

115115
@Get(':id/context')
116-
@Responser.handle('Get context articles')
116+
@Responser.handle({
117+
message: 'Get context articles',
118+
error: HttpStatus.NOT_FOUND
119+
})
117120
async getArticleContext(@QueryParams() { params }: QueryParamsResult) {
118121
const articleId = Number(params.id)
119122
const [prevArticles, nextArticles, relatedArticles] = await Promise.all([

0 commit comments

Comments
 (0)