Add Bible verse highlights and notes API
This commit is contained in:
@@ -5,6 +5,10 @@ let userProfileCache = {};
|
||||
userDB = (DB) => {
|
||||
DB.profileCols = DB.db.db(DBName).collection("profiles");
|
||||
|
||||
DB.clearProfileCache = (profileid) => {
|
||||
if (userProfileCache[profileid]) delete userProfileCache[profileid];
|
||||
};
|
||||
|
||||
DB.newProfile = (profileObj) => {
|
||||
return DB.profileCols.insertOne(profileObj.toObj()).catch((err) => {
|
||||
console.log(err);
|
||||
|
||||
Reference in New Issue
Block a user