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

This commit is contained in:
Zakaria El Asri authored and olivermrbl committed 2022-02-25 18:53:49 +01:00
1 parent 3b878bc5dd
commit a81def2f75
2 files changed
+36

No files matched your search

+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()