1
0
Fork 0
mirror of synced 2024-10-01 01:28:51 +13:00

Fix bad schema type when fetching bindable properties

This commit is contained in:
Andrew Kingston 2020-10-28 19:37:53 +00:00
parent 6cd428a4c8
commit 8a49a04cd1

View file

@ -106,11 +106,15 @@ const contextToBindables = (tables, walkResult) => context => {
} }
} }
const stringType = { type: "string" }
return ( return (
Object.entries(schema) Object.entries(schema)
.map(newBindable) .map(newBindable)
// add _id and _rev fields - not part of schema, but always valid // add _id and _rev fields - not part of schema, but always valid
.concat([newBindable(["_id", "string"]), newBindable(["_rev", "string"])]) .concat([
newBindable(["_id", stringType]),
newBindable(["_rev", stringType]),
])
) )
} }