Skip to content

Commit

Permalink
fix: use Lead Style from MP tick import instead of Style
Browse files Browse the repository at this point in the history
  • Loading branch information
glassbead0 committed Jan 23, 2025
1 parent 970a113 commit 8b3c22d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/api/user/bulkImportTicks/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ const postHandler = async (req: NextRequest): Promise<any> => {
climbId: tick.mp_id,
userId: uuid,
style: tick.Style === '' ? 'N/A' : tick.Style,
attemptType: tick.Style === '' ? 'N/A' : tick.Style,
attemptType: tick['Lead Style'] === '' ? 'N/A' : tick['Lead Style'],
dateClimbed: new Date(Date.parse(`${tick.Date}T00:00:00`)), // Date.parse without timezone specified converts date to user's present timezone.
grade: tick.Rating,
source: 'MP'
Expand Down

0 comments on commit 8b3c22d

Please sign in to comment.