Add Bible verse highlights and notes API

This commit is contained in:
Adolfo Reyna
2026-05-28 20:45:41 -04:00
parent ef7c24c884
commit 65a4178e2b
6 changed files with 617 additions and 3 deletions
+4
View File
@@ -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);