Skip to content
Closed
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 bin/www
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ app.set("port", port);
*/
const mongoose = require("mongoose");
const dev_db_url =
"mongodb+srv://cooluser:coolpassword@cluster0.cojoign.mongodb.net/local_library?retryWrites=true&w=majority&appName=Cluster0";
"mongodb+srv://1evelynbeatriz:esRhkYXtccpmysZI@cluster0.edqzaje.mongodb.net/?appName=Cluster0";
const mongoDB = process.env.MONGODB_URI || dev_db_url;

try {
Expand Down
9 changes: 9 additions & 0 deletions populatedb.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ async function createAuthors() {
authorCreate(2, "Isaac", "Asimov", "1920-01-02", "1992-04-06"),
authorCreate(3, "Bob", "Billings", false, false),
authorCreate(4, "Jim", "Jones", "1971-12-16", false),
authorCreate(5, "Evelyn Beatriz", "Teixeira", "2008-11-10", false),
]);
}

Expand Down Expand Up @@ -165,6 +166,14 @@ async function createBooks() {
authors[4],
false
),
bookCreate(
7,
"Yellowjackets",
"Sumário de Yelllowjackets",
"ISBN333333",
authors[5],
false
)
]);
}

Expand Down