feature: Add Friends

Now other user can be added as friends in Settings > Friends
This commit is contained in:
Moon Patel
2023-07-13 23:12:01 +05:30
parent 03fd3a0692
commit e8775ff8e1
5 changed files with 54 additions and 26 deletions
+2
View File
@@ -62,5 +62,7 @@ const userSchema = new Schema(
}
);
userSchema.index({ username: "text" });
const User = mongoose.model("User", userSchema);
module.exports = { User };