i am using mongo server and on node.js
when trying to use my function to find client by name for the second time i get ther error of "topology was destroyed"
function findClient(Fname,res){
let query = {name:Fname}
dbo.collection("clients").find(query).toArray(function(err, result) {
if (err) throw err;
console.log(result.name);
res.send(result)
db.close();
});
}