@recursyve/nestjs-data-filter 11.4.0 → 11.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -386,7 +386,7 @@ let FilterService = FilterService_1 = class FilterService {
|
|
|
386
386
|
const customAttributes = filter.order ? this.getOrderCustomAttribute(filter.order, filter.data) : [];
|
|
387
387
|
const values = await repository.model.findAll({
|
|
388
388
|
...options,
|
|
389
|
-
attributes: [[sequelize_typescript_1.Sequelize.literal(`DISTINCT \`${this.repository.model.name}\`.\`id\``), "
|
|
389
|
+
attributes: [[sequelize_typescript_1.Sequelize.literal(`DISTINCT \`${this.repository.model.name}\`.\`id\``), "id"], ...customAttributes],
|
|
390
390
|
limit: (_d = filter.page) === null || _d === void 0 ? void 0 : _d.size,
|
|
391
391
|
offset: filter.page ? filter.page.number * filter.page.size + ((_e = filter.page.offset) !== null && _e !== void 0 ? _e : 0) : undefined,
|
|
392
392
|
subQuery: false,
|