Skip to content

Commit

Permalink
UPDATE: enhancing code logging readiblity.
Browse files Browse the repository at this point in the history
  • Loading branch information
AhmedMaherElSaeidi committed Jul 27, 2024
1 parent e9c3f94 commit 3219fee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions database.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ const sequelize = new Sequelize(database, username, password, {
sequelize
.authenticate()
.then(() => {
console.log("DB Connection has been established successfully.");
console.log("======> DB Connection has been established successfully.");
})
.catch((error) => {
console.error("Unable to connect to the database: ", error);
console.error("======> Unable to connect to the database: ", error);
});

// export sequelize connection
Expand Down
2 changes: 0 additions & 2 deletions models/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@ db.sync({ force: false }).then(async () => {
{ name: "Cooling and Heating" },
]);
}

console.log("Tables Created!");
});

// export tables
Expand Down

0 comments on commit 3219fee

Please sign in to comment.