Added separate function for putStations
This commit is contained in:
parent
5ff40057c3
commit
196d0621f5
@ -18,23 +18,26 @@ async function putCorpusAll(data){
|
||||
};
|
||||
|
||||
async function putStations(data){
|
||||
|
||||
};
|
||||
|
||||
async function putData(data,collection) {
|
||||
await client.connect()
|
||||
var coll = db.collection(collection);
|
||||
await client.connect();
|
||||
var coll = db.collection("stations");
|
||||
var result = coll.insertMany(data);
|
||||
console.log(result);
|
||||
}
|
||||
};
|
||||
|
||||
//async function putData(data,collection) {
|
||||
// await client.connect()
|
||||
// var coll = db.collection(collection);
|
||||
// var result = coll.insertMany(data);
|
||||
// console.log(result);
|
||||
//};
|
||||
|
||||
async function getCrs(tiploc) {
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
async function checkCrs(crs) {
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
putData,
|
||||
|
Reference in New Issue
Block a user