Skip to content

Commit

Permalink
update GitHub Actions workflows and refine API request handling (#664)
Browse files Browse the repository at this point in the history
* update GitHub Actions workflows and refine API request handling

* updated second cache action
  • Loading branch information
jeromehardaway authored Dec 10, 2024
1 parent 573eeb8 commit d44c0c6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Cache node modules
uses: actions/cache@v2
uses: actions/cache@v4
env:
cache-name: cache-node-modules
with:
Expand All @@ -37,7 +37,7 @@ jobs:
run: yarn

- name: Cache Playwright Browsers
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: |
~/.cache/ms-playwright
Expand Down
1 change: 0 additions & 1 deletion public/mailchimp.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions src/pages/api/apply.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ interface ParsedBody {
email?: string;
city?: string;
state?: string;
zipCode?: string;
zipCode?: number;
country?: string;
branchOfService?: string;
yearJoined?: string;
yearSeparated?: string;
yearJoined?: number;
yearSeparated?: number;
hasAttendedPreviousCourse?: boolean;
previousCourses?: string;
willAttendAnotherCourse?: boolean;
Expand Down Expand Up @@ -98,6 +98,6 @@ export default async function handler(req: Request, res: Response) {
} catch (err) {
// Log the error for debugging and respond with an error message
// console.error("Failed to post to #mentor channel:", err);
return res.status(500).json({ message: "Failed to post to #mentor channel" });
return res.status(500).json({ message: "Failed to post to #apply channel" });
}
}

0 comments on commit d44c0c6

Please sign in to comment.