Fixing failing test.
This commit is contained in:
parent
5240c2c2ca
commit
6824d8626a
|
@ -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: [
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue