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 = {
|
||||
foo: "bar",
|
||||
data: [
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue