fix: Ricerca non funzionante

Query parameter sbagliato
This commit is contained in:
Maicol Battistini 2023-07-05 15:39:00 +02:00
parent e0272d0f22
commit 7e15bade8d
No known key found for this signature in database
1 changed files with 2 additions and 1 deletions

View File

@ -107,7 +107,8 @@ export default abstract class RecordsPage<
let query = this.modelType.query<M>();
for (const [attribute, value] of this.filters) {
query = query.where(attribute, value);
// query = query.where(attribute, value); TODO: Revert when Restify uses JSONAPI syntax
query = query.option(attribute, value);
}
for (const [attribute, value] of this.sort) {
query = query.orderBy(attribute, value);