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

[SP1] 리크루팅 알림받기 API에서 500 에러가 나는 것을 해결한다. #193

Merged
merged 1 commit into from
Sep 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion src/lib/constants/googlesheet-env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export const googleSheetCredential = {
type: 'service_account',
project_id: process.env.NEXT_GOOGLE_SHEET_PROJECT_ID,
private_key_id: process.env.NEXT_GOOGLE_SHEET_PRIVATE_KEY_ID,
private_key: process.env.NEXT_GOOGLE_SHEET_PRIVATE_KEY,
private_key: process.env.NEXT_GOOGLE_SHEET_PRIVATE_KEY?.split(String.raw`\n`).join('\n'),
client_email: process.env.NEXT_GOOGLE_SHEET_CLIENT_EMAIL,
client_id: process.env.NEXT_GOOGLE_SHEET_CLIENT_ID,
auth_uri: process.env.NEXT_GOOGLE_SHEET_AUTH_URI,
Expand Down
2 changes: 1 addition & 1 deletion src/pages/api/register.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default async function handler(request: NextApiRequest, response: NextApi
return response.status(200).json({ success: resultStatus === 200, resultStatus });
}
} catch (error) {
return response.status(500).json({ error: 'Internal server error' });
return response.status(500).json({ error });
}

return response.status(200).json({ success: true });
Expand Down
Loading