Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update GitHub Actions workflows and refine API request handling #664

Merged
merged 3 commits into from
Dec 10, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 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 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;
linkedInAccountName?: string;
githubAccountName?: string;
preworkLink?: string;
Expand Down Expand Up @@ -76,6 +76,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" });
}
}