Skip to content

Commit

Permalink
feat: add email to roll call
Browse files Browse the repository at this point in the history
  • Loading branch information
qin-guan committed Jan 25, 2024
1 parent ef9ad29 commit 52ee4e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pages/admin/events/[id].vue
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,10 @@ function deleteEvent() {
async function downloadRollCall() {
const { unparse } = await import('papaparse')
const transformedData = event.value?.attendees.map(({ id, name, admissionKey }) => ({
const transformedData = event.value?.attendees.map(({ id, name, admissionKey, email }) => ({

Check failure on line 135 in pages/admin/events/[id].vue

View workflow job for this annotation

GitHub Actions / ci

Property 'email' does not exist on type 'UserRestrictedWithAdmissionKey'.
id,
name,
email,
link: `https://app.sstaa.org/pass/${admissionKey}`,
})) ?? []
const file = unparse(transformedData)
Expand Down
1 change: 1 addition & 0 deletions server/api/event/[id]/index.get.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export default defineProtectedEventHandler(async (event) => {
columns: {
id: true,
name: true,
email: true,
},
},
},
Expand Down

0 comments on commit 52ee4e0

Please # to comment.