Error on RecordsGetter().getIdsFromRequest() when "all records" are selected

Hi team,

I have problems when using the RecordsGetter().getIdsFromRequest() function call along with the Select all records selection with multiple pages selected.

The following call, for example:
const userIds = await new RecordsGetter(models.users).getIdsFromRequest(req);

used in a smart action route, is generating the following error:

(node:15824) UnhandledPromiseRejectionWarning: TypeError: Cannot read property ‘format’ of undefined
at new BaseOperatorDateParser (d:\MyPocket\forest-admin\node_modules\forest-express\dist\services\base-operator-date-parser.js:35:92)
at new FiltersParser (d:\MyPocket\forest-admin\node_modules\forest-express-sequelize\dist\services\filters-parser.js:24:29)
at QueryOptions.filterByConditionTree (d:\MyPocket\forest-admin\node_modules\forest-express-sequelize\dist\services\query-options.js:163:26)
at ResourcesGetter._buildQueryOptions (d:\MyPocket\forest-admin\node_modules\forest-express-sequelize\dist\services\resources-getter.js:95:24)
at async ResourcesGetter.count (d:\MyPocket\forest-admin\node_modules\forest-express-sequelize\dist\services\resources-getter.js:41:30)

Here is my current setup

“database_type”: “postgres”,
“liana”: “forest-express-sequelize”,
“liana_version”: “7.9.3”,
“engine”: “nodejs”,
“engine_version”: “14.16.0”,
“orm_version”: “5.22.3”

Thanks in advance

Hi @Louis-Marie,

Thank you for reporting out this issue, we’re currently working on a fix and we’ll deliver it ASAP

Cheers,

@Louis-Marie a fix for this select all issue should have been released.

Thank you for your patience and let me know if ever you still have this issue.

Hi @anon37102731

The new released is used now, and I confirm that the issue was fixed.

Thank you for your prompt answer and the associated correction.

Best regards