Skip to content

Commit 2394fac

Browse files
committed
cloud_functions: flatten out array to return
1 parent 592c9a3 commit 2394fac

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cloud_functions/src/getReobserveVaas.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ export async function getReobserveVaas(req: any, res: any) {
4040
console.error('reobs', reobs);
4141
res.sendStatus(500);
4242
}
43-
res.status(200).send(JSON.stringify(reobs));
43+
// Need to flatten the array of arrays before returning
44+
const retVal = reobs.flat();
45+
res.status(200).send(JSON.stringify(retVal));
4446
return;
4547
}
4648

0 commit comments

Comments
 (0)