mirror of
https://github.com/wassname/talk.git
synced 2026-10-30 13:50:47 +08:00
Fix asset search skip limit bug
This commit is contained in:
1 parent
e320a9dd20
commit
9764631a37
1 file changed
+8
-5
+8
-5
@@ -92,11 +92,14 @@ module.exports = class AssetsService {
|
||||
if (value.length === 0) {
|
||||
return AssetsService.all(skip, limit);
|
||||
} else {
|
||||
return AssetModel.find({
|
||||
$text: {
|
||||
$search: value
|
||||
}
|
||||
});
|
||||
return AssetModel
|
||||
.find({
|
||||
$text: {
|
||||
$search: value
|
||||
}
|
||||
})
|
||||
.skip(skip)
|
||||
.limit(limit);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user