Skip to content

Commit d44c0c6

Browse files
update GitHub Actions workflows and refine API request handling (#664)
* update GitHub Actions workflows and refine API request handling * updated second cache action
1 parent 573eeb8 commit d44c0c6

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

.github/workflows/playwright.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212
runs-on: ubuntu-latest
1313

1414
steps:
15-
- uses: actions/checkout@v3
15+
- uses: actions/checkout@v4
1616

1717
- name: Cache node modules
18-
uses: actions/cache@v2
18+
uses: actions/cache@v4
1919
env:
2020
cache-name: cache-node-modules
2121
with:
@@ -37,7 +37,7 @@ jobs:
3737
run: yarn
3838

3939
- name: Cache Playwright Browsers
40-
uses: actions/cache@v2
40+
uses: actions/cache@v4
4141
with:
4242
path: |
4343
~/.cache/ms-playwright

public/mailchimp.js

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/pages/api/apply.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ interface ParsedBody {
99
email?: string;
1010
city?: string;
1111
state?: string;
12-
zipCode?: string;
12+
zipCode?: number;
1313
country?: string;
1414
branchOfService?: string;
15-
yearJoined?: string;
16-
yearSeparated?: string;
15+
yearJoined?: number;
16+
yearSeparated?: number;
1717
hasAttendedPreviousCourse?: boolean;
1818
previousCourses?: string;
1919
willAttendAnotherCourse?: boolean;
@@ -98,6 +98,6 @@ export default async function handler(req: Request, res: Response) {
9898
} catch (err) {
9999
// Log the error for debugging and respond with an error message
100100
// console.error("Failed to post to #mentor channel:", err);
101-
return res.status(500).json({ message: "Failed to post to #mentor channel" });
101+
return res.status(500).json({ message: "Failed to post to #apply channel" });
102102
}
103103
}

0 commit comments

Comments
 (0)