News post emails
This commit is contained in:
@@ -36,6 +36,11 @@ const getDB = new Promise((resolve, reject) => {
|
||||
return DB.usersCol.findOne({ username: username });
|
||||
}
|
||||
|
||||
DB.getAllEmails = () => {
|
||||
// Change this to paginations chunks
|
||||
return DB.usersCol.find().project({username: 1}).toArray();
|
||||
};
|
||||
|
||||
DB.resetUserPassword = (username, password)=>{
|
||||
return DB.usersCol.updateOne({username}, {$set:{password}})
|
||||
.catch(console.error);
|
||||
|
||||
Reference in New Issue
Block a user