Skip to content

Commit 410f4a7

Browse files
autora e livro
1 parent 438ee65 commit 410f4a7

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

bin/www

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ app.set("port", port);
2020
*/
2121
const mongoose = require("mongoose");
2222
const dev_db_url =
23-
"mongodb+srv://cooluser:coolpassword@cluster0.cojoign.mongodb.net/local_library?retryWrites=true&w=majority&appName=Cluster0";
23+
"mongodb+srv://1evelynbeatriz:esRhkYXtccpmysZI@cluster0.edqzaje.mongodb.net/?appName=Cluster0";
2424
const mongoDB = process.env.MONGODB_URI || dev_db_url;
2525

2626
try {

populatedb.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ async function createAuthors() {
103103
authorCreate(2, "Isaac", "Asimov", "1920-01-02", "1992-04-06"),
104104
authorCreate(3, "Bob", "Billings", false, false),
105105
authorCreate(4, "Jim", "Jones", "1971-12-16", false),
106+
authorCreate(5, "Evelyn Beatriz", "Teixeira", "2008-11-10", false),
106107
]);
107108
}
108109

@@ -165,6 +166,14 @@ async function createBooks() {
165166
authors[4],
166167
false
167168
),
169+
bookCreate(
170+
7,
171+
"Yellowjackets",
172+
"Sumário de Yelllowjackets",
173+
"ISBN333333",
174+
authors[5],
175+
false
176+
)
168177
]);
169178
}
170179

0 commit comments

Comments
 (0)