Skip to content

Commit

Permalink
Put ; in query and at the end of config file
Browse files Browse the repository at this point in the history
  • Loading branch information
Afsha10 committed Oct 20, 2023
1 parent c55af80 commit 49688fd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions client/plan.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,3 +122,6 @@ We will always need to hand down the following:
const unValidatedUrl = new URL(event.target.form.url.value);
// const isValidated = validateUrl(unValidatedUrl);




5 changes: 3 additions & 2 deletions client/src/config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export const baseUrl = "https://afsha-full-stack-video-storage-app.onrender.com" // prod
export const baseUrl =
"https://afsha-full-stack-video-storage-app.onrender.com"; // prod

// export const baseUrl = "http://localhost:5000" //dev
// export const baseUrl = "http://localhost:5000"; //dev
2 changes: 1 addition & 1 deletion server/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ app.post("/videos", (req, res) => {
});
} else {
const query = `INSERT INTO videos (title, url, rating, createdAt)
VALUES ($1, $2, 0, now())`;
VALUES ($1, $2, 0, now());`;

db.query(query, [title, url])
.then(() => {
Expand Down

0 comments on commit 49688fd

Please sign in to comment.