Skip to content

Commit 971fc92

Browse files
committed
fix(newest): remove unnecessary limit modification from article query
1 parent 94053a5 commit 971fc92

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/connectors/articleService.ts

-5
Original file line numberDiff line numberDiff line change
@@ -381,11 +381,6 @@ export class ArticleService extends BaseService<Article> {
381381
.where('type', 'articleNewest')
382382
)
383383
.orderBy('article.id', 'desc')
384-
.modify((builder) => {
385-
if (!oss) {
386-
builder.limit(maxTake * 2) // add some extra to cover excluded ones in settings
387-
}
388-
})
389384
.as('article_set')
390385
)
391386
.where((builder) => {

0 commit comments

Comments
 (0)