fix: allow offset and limit in products free text search (#1082)

This commit is contained in:
Zakaria El Asri
2022-02-25 18:53:49 +01:00
committed by olivermrbl
parent 3b878bc5dd
commit a81def2f75
2 changed files with 36 additions and 0 deletions
+2
View File
@@ -890,6 +890,8 @@ class ProductService extends BaseService {
.orWhere(`collection.title ILIKE :q`, { q: `%${q}%` })
})
)
.skip(query.skip)
.take(query.take)
if (query.withDeleted) {
qb = qb.withDeleted()