Skip to content

Commit

Permalink
Remove date check for ticket purchases
Browse files Browse the repository at this point in the history
  • Loading branch information
brundonsmith committed Apr 5, 2024
1 parent cfa2a5c commit 9d3f16d
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions back-end/routes/v1/purchase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,6 @@ export default function register(router: Router) {
const { festival_id, max_available, max_per_account } = purchaseType
const festival = TABLE_ROWS.festival.find(f => f.festival_id === festival_id)!

// if festival is in the past, don't allow purchases
if (new Date(festival.start_date).valueOf() < Date.now()) {
return [null, Status.Unauthorized]
}

// if festival hasn't started sales, don't allow purchases
if (!festival.sales_are_open) {
return [null, Status.Unauthorized]
Expand Down

0 comments on commit 9d3f16d

Please sign in to comment.