Fix queryUtils tests.

This commit is contained in:
Sam Rose 2025-02-25 11:08:18 +00:00
parent b5886a7d9b
commit da8c5be685
No known key found for this signature in database
2 changed files with 1 additions and 5 deletions

View File

@ -126,5 +126,5 @@ export const getQueryableFields = async (
} }
result.push(...(await extractTableFields(table, fields, [table._id!]))) result.push(...(await extractTableFields(table, fields, [table._id!])))
return result return Array.from(new Set(result))
} }

View File

@ -425,9 +425,7 @@ describe("query utils", () => {
// aux2_2 primitive props // aux2_2 primitive props
"aux2_2._id", "aux2_2._id",
"aux2Table._id",
"aux2_2.title", "aux2_2.title",
"aux2Table.title",
// table primitive props // table primitive props
"table._id", "table._id",
@ -453,9 +451,7 @@ describe("query utils", () => {
// aux1_2 primitive props // aux1_2 primitive props
"aux1_2._id", "aux1_2._id",
"aux1Table._id",
"aux1_2.name", "aux1_2.name",
"aux1Table.name",
// table primitive props // table primitive props
"table._id", "table._id",