1
0
Fork 0
mirror of synced 2024-06-29 19:41:03 +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 = { const data = {
foo: "bar", foo: "bar",
data: [ data: [

View file

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