react and unreact
This commit is contained in:
@@ -25,7 +25,7 @@ postDB = (DB)=>{
|
||||
});
|
||||
}
|
||||
|
||||
DB.removeReaction = (postid, userid) => {
|
||||
DB.removeReaction = (postid, profileid) => {
|
||||
const id = DB.ObjectID(postid);
|
||||
let update = {
|
||||
$unset:{
|
||||
|
||||
@@ -34,7 +34,7 @@ userDB = (DB) => {
|
||||
DB.latestProfile = async (userId) => {
|
||||
const userid = DB.ObjectID(userId);
|
||||
let r = await DB.profileCols.find({ userid })
|
||||
.sort({ lastUpdate: -1 }).limit(1)
|
||||
.sort({ lastUpdate: -1 })
|
||||
.toArray().catch((err) => {
|
||||
console.log(err);
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user