Skip to content

Commit

Permalink
Fixed error response
Browse files Browse the repository at this point in the history
  • Loading branch information
cultpodcasts committed Feb 17, 2024
1 parent fc6e49c commit 399fb3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export default {
try {
url = new URL(urlParam);
} catch {
return new Response(`Invalid url '${url}'.`, { status: 400 });
return new Response(`Invalid url '${data.url}'.`, { status: 400 });
}
let insert = env.DB
.prepare("INSERT INTO urls (url, timestamp, timestamp_date, ip_address, country, user_agent) VALUES (?, ?, ?, ?, ?, ?)")
Expand Down

0 comments on commit 399fb3e

Please sign in to comment.