socket connection established and chess logic imported from old codebase

This commit is contained in:
Moon Patel
2023-06-29 02:03:06 +05:30
parent 8e91427c1c
commit 0a06890b81
34 changed files with 848 additions and 38 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ const userSchema = new Schema(
methods: {
async getFriends() {
await this.populate("friends", "username");
console.log(this.friends);
// console.log(this.friends);
return this.friends.map(friend => friend.username);
},
},