Skip to content

Commit

Permalink
feat: add recordId to export & relocate export-workbook plugin (#263)
Browse files Browse the repository at this point in the history
* fix: relocate export-workbook plugin

* chore: update package-lock

* feat: include recordId in export
  • Loading branch information
carlbrugger authored Oct 17, 2023
1 parent 2aaae2f commit 3e742c9
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 4 deletions.
20 changes: 18 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ export const run = async (

const rows = R.pipe(
data.records,
R.map(({ values: row }) => {
return R.pipe(
R.map(({ id, values: row }) => {
const rowValue = R.pipe(
Object.keys(row),
R.reduce((acc, colName) => {
return {
Expand All @@ -66,6 +66,10 @@ export const run = async (
}
}, {})
)
return {
id,
...rowValue,
}
})
)

Expand Down

0 comments on commit 3e742c9

Please sign in to comment.