Skip to content

Commit

Permalink
Merge pull request #49 from Vancouver-KDD/fix-ticket
Browse files Browse the repository at this point in the history
Fix creating ticket issue
  • Loading branch information
everywherejacobkim authored Nov 22, 2023
2 parents 1b002a1 + 14773d0 commit 674ab9b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions src/app.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ declare namespace DB {
location: string
message: string

field: string
kakao: string
dinner: string
field?: string
kakao?: string
dinner?: string
}

interface Email {
Expand Down
14 changes: 7 additions & 7 deletions src/lib/components/AdminTable.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
let ticketTable: HTMLTableElement
function exportData(type: string) {
const fileName = `${events[0].title}.` + type
const fileName = 'KDD행사리스트.' + type
const table = ticketTable
const wb = XLSX.utils.table_to_book(table)
XLSX.writeFile(wb, fileName)
Expand Down Expand Up @@ -51,9 +51,9 @@
<td>{ticket.work}</td>

<!-- for event 밴쿠버 IT회사 옆 대나무숲 -->
<td>{ticket.field ? ticket.field : '해당없음'}</td>
<td>{ticket.kakao ? ticket.kakao : '해당없음'}</td>
<td>{ticket.dinner ? ticket.dinner : '해당없음'}</td>
<td>{ticket.field}</td>
<td>{ticket.kakao}</td>
<td>{ticket.dinner}</td>

<td>{ticket.firstTime}</td>
<td class="text-left">{ticket.message}</td>
Expand All @@ -78,9 +78,9 @@
<td>{ticket.work}</td>

<!-- for event 밴쿠버 IT회사 옆 대나무숲 -->
<td>{ticket.field ? ticket.field : '해당없음'}</td>
<td>{ticket.kakao ? ticket.kakao : '해당없음'}</td>
<td>{ticket.dinner ? ticket.dinner : '해당없음'}</td>
<td>{ticket.field}</td>
<td>{ticket.kakao}</td>
<td>{ticket.dinner}</td>

<td>{ticket.firstTime}</td>
<td class="text-left">{ticket.message}</td>
Expand Down
6 changes: 3 additions & 3 deletions src/routes/checkout/[eventId]/+page.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ export const actions = {
status: isFree ? 'free' : 'unpaid',

//for event 밴쿠버 IT회사 옆 대나무숲
field: userData.field,
kakao: userData.kakao,
dinner: userData.dinner,
field: userData.field ? userData.field : "해당없음",
kakao: userData.kakao ? userData.field: "해당없음",
dinner: userData.dinner ? userData.dinner : "해당없음",
} satisfies Omit<DB.Ticket, 'createdAt'>

await createTicket(ticketData)
Expand Down

0 comments on commit 674ab9b

Please sign in to comment.