1
0
Fork 0
mirror of synced 2024-10-04 20:13:35 +13:00

Wider check on fields == null.

This commit is contained in:
Sam Rose 2024-09-26 17:06:51 +01:00
parent aa738659ae
commit 8dd21e5592
No known key found for this signature in database

View file

@ -110,7 +110,7 @@ export const getQueryableFields = async (
"_id", // Querying by _id is always allowed, even if it's never part of the schema
]
if (fields === undefined) {
if (fields == null) {
fields = Object.keys(table.schema)
}
result.push(...(await extractTableFields(table, fields, [table._id!])))