Skip to content

Commit

Permalink
skip ip country query in dev
Browse files Browse the repository at this point in the history
  • Loading branch information
calebtuttle committed Jul 25, 2024
1 parent 4ba0c53 commit ee0f40b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/sessions/endpoints.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ async function postSession(req, res) {
);
const ipCountry = resp?.data?.country;

if (!ipCountry) {
if (!ipCountry && process.env.NODE_ENV != 'development') {
return res.status(500).json({ error: "Could not determine country from IP" });
}

Expand Down

0 comments on commit ee0f40b

Please sign in to comment.