newsletter recipients
This commit is contained in:
parent
ec477b7d72
commit
81b7f533c7
6 changed files with 81 additions and 17 deletions
|
@ -11,7 +11,7 @@ export function flattenQueryResult(result: Array<QueryResult>): Array<{ [key: st
|
|||
|
||||
for (const key in row) {
|
||||
const value = row[key];
|
||||
const newKey = prefix ? `${prefix}.${key}` : key;
|
||||
const newKey = prefix ? `${prefix}_${key}` : key;
|
||||
|
||||
if (Array.isArray(value) && value.every((item) => typeof item === "object" && item !== null)) {
|
||||
console.log(value, newKey);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue