1
0
Fork 0
mirror of synced 2024-06-18 18:35:37 +12:00

Fixing failing test.

This commit is contained in:
Michael Drury 2024-03-25 11:19:31 +00:00
parent 5240c2c2ca
commit 6824d8626a
2 changed files with 4 additions and 1 deletions

View file

@ -464,7 +464,7 @@ describe("/queries", () => {
})
})
it("should ignore be able to save deeply nested data", async () => {
it("should be able to save deeply nested data", async () => {
const data = {
foo: "bar",
data: [

View file

@ -89,6 +89,9 @@ export async function enrichContext(
if (!fields || !inputs) {
return enrichedQuery
}
if (Array.isArray(fields)) {
return enrichArrayContext(fields, inputs)
}
const env = await getEnvironmentVariables()
const parameters = { ...inputs, env }
// enrich the fields with dynamic parameters