박권수

refactor. db update -> db connection after db update

......@@ -13,14 +13,14 @@ const app = new Koa();
const router = new Router();
updateMedicineInfo.updateMedicineInfo();
Mongoose.connect(MONGO_URL, {
useFindAndModify : false,
useNewUrlParser : true,
useUnifiedTopology: true,
useCreateIndex : true
}).then(() => {
console.log('Mongo DB is connected : ', MONGO_URL);
updateMedicineInfo.updateMedicineInfo();
}).catch(e => {
console.log(e, error);
})
......
This diff is collapsed. Click to expand it.
......@@ -15,5 +15,8 @@
"IoT"
],
"author": "박권수",
"license": "ISC"
"license": "ISC",
"dependencies": {
"mqtt": "^4.2.6"
}
}
......