Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feedback #1

Open
wants to merge 406 commits into
base: feedback
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
406 commits
Select commit Hold shift + click to select a range
21c3a94
added a locations array to user and a new component in edit profile t…
zhaoroger Jul 21, 2023
6d0ff08
docs: add sprint 2 marks
winsyuan Jul 21, 2023
96c1652
15-accidentally did not commit changes to server
zhaoroger Jul 21, 2023
3d6ed0b
Merge pull request #24 from CSCC012023/17-event-page
A-Jatana Jul 21, 2023
410dd3a
Create PB.md
A-Jatana Jul 21, 2023
dea1159
Update PB.md
ExuApplePie Jul 21, 2023
cd8a47d
Update PB.md
ExuApplePie Jul 21, 2023
170a35a
Create README.md
A-Jatana Jul 21, 2023
a4ab932
Delete README.md
A-Jatana Jul 21, 2023
ee6edfb
Update README.md
nishus24 Jul 21, 2023
6bcda29
Update README.md
nishus24 Jul 21, 2023
3a31cbb
Update README.md
nishus24 Jul 21, 2023
809c6b8
Update README.md
nishus24 Jul 21, 2023
a2113a3
15-fixed the bug. now when user clicks submit it will accurately add …
zhaoroger Jul 21, 2023
fca80ee
15 modified search bar in eventcard so you can search by event city/r…
zhaoroger Jul 21, 2023
802dea3
15 fixed small bug from last commit that was causing the city list to…
zhaoroger Jul 21, 2023
69c9945
15 events can just have a country and region or just country also may…
zhaoroger Jul 21, 2023
43cf3e1
15-added a preferred locaitons toggle button on the event page that w…
zhaoroger Jul 22, 2023
a1bd479
Resolved issue with messaging and updated filters
A-Jatana Jul 22, 2023
663c3d1
Add files via upload
A-Jatana Jul 22, 2023
8f7437d
added a filter in dashboard that recommends events to users that matc…
zhaoroger Jul 22, 2023
fcd9b9a
Update PB.md
Pyrunix Jul 22, 2023
eb3ce17
15/36-added light comments
zhaoroger Jul 22, 2023
e97d543
Pulled development into 15-alt-location. Fixed merge conflicts
zhaoroger Jul 22, 2023
6f7d7ff
15 i missed some files in server
zhaoroger Jul 22, 2023
324ec3e
Merge pull request #25 from CSCC012023/15-alt-location
zhaoroger Jul 22, 2023
40dfaad
Merge pull request #26 from CSCC012023/development
A-Jatana Jul 22, 2023
fc9e724
Create Sprint-02-review.md
zhaoroger Jul 22, 2023
ff5615a
Update Sprint-02-review.md
zhaoroger Jul 22, 2023
1ce4192
Update Sprint-02-review.md
zhaoroger Jul 22, 2023
84af766
Update Sprint-02-review.md
zhaoroger Jul 22, 2023
68fa04f
Create iteration-03.plan.md
zhaoroger Jul 22, 2023
974a161
Update iteration-03.plan.md
zhaoroger Jul 22, 2023
7f75969
Update PB.md
zhaoroger Jul 22, 2023
cf6242c
Add files via upload
zhaoroger Jul 22, 2023
ef42461
Delete schedule.pdf
A-Jatana Jul 22, 2023
a9305ce
Add files via upload
A-Jatana Jul 22, 2023
3f30887
Add files via upload
zhaoroger Jul 22, 2023
c9c192b
Update iteration-03.plan.md
A-Jatana Jul 22, 2023
783ee41
32-noticed small issue with algorithm. quick fix not worth making new…
zhaoroger Jul 22, 2023
28c57a9
Merge branch 'development' into 47-realtime_update
Pyrunix Jul 22, 2023
b66c865
Merge branch 'development' into 47-realtime_update
Pyrunix Jul 22, 2023
dd90cbf
Merge pull request #23 from CSCC012023/47-realtime_update
zhaoroger Jul 23, 2023
0ef1f48
Update Sprint-02-review.md
zhaoroger Jul 27, 2023
6076d37
58-recommended excludes events the user made or events the user is al…
zhaoroger Jul 28, 2023
4228654
Merge pull request #27 from CSCC012023/58-recommended-tweak
ExuApplePie Jul 28, 2023
1e7bc73
initial commit
ExuApplePie Jul 28, 2023
a1f5ea8
Merge branch 'development' of https://github.com/CSCC012023/final-pro…
ExuApplePie Jul 28, 2023
da47475
Separated Event cards for findEvent page (formerly eventCards), dashb…
ExuApplePie Jul 28, 2023
f66e647
committing findEvent files
ExuApplePie Jul 28, 2023
9f09954
[63] event card successfully decoupled and working on Find Events pag…
ExuApplePie Jul 28, 2023
223675b
Merge pull request #28 from CSCC012023/63-decouple-event-cards
zhaoroger Jul 28, 2023
3c52796
Merge pull request #29 from CSCC012023/63-decouple-event-cards
zhaoroger Jul 29, 2023
afcfac1
[pp-56]:friend feature is modified with friend request fucntioanlity,…
Mustafa0503 Jul 29, 2023
3d8bb96
[pp-56]:bug fixed
Mustafa0503 Jul 29, 2023
f91f570
[pp-56]:commenting
Mustafa0503 Jul 29, 2023
5ef76ee
[pp-56]:commenting
Mustafa0503 Jul 29, 2023
359a1de
[pp-56]:commenting
Mustafa0503 Jul 29, 2023
a3b00fb
[pp-56]:commenting
Mustafa0503 Jul 29, 2023
ed857a6
[pp-56]:commenting
Mustafa0503 Jul 29, 2023
d1a62bd
[pp-56]:commenting
Mustafa0503 Jul 29, 2023
bee4a6f
[pp-56]:commenting
Mustafa0503 Jul 29, 2023
8709400
[pp-56]:commenting
Mustafa0503 Jul 29, 2023
431dd22
[pp-56]:commenting
Mustafa0503 Jul 29, 2023
35c9d45
[pp-56]:last commenting
Mustafa0503 Jul 29, 2023
73140e5
docs: add sprint 3 marks
winsyuan Jul 29, 2023
2f7111e
Hotfix: fixed the preferred location filter not filtering properly af…
zhaoroger Jul 29, 2023
589210f
64-fixed location and theme filter to work together and made location…
zhaoroger Jul 30, 2023
eb2e17f
64-pagination no longer resets when enroll/unenroll are clicked
zhaoroger Jul 30, 2023
3a47814
Merge pull request #30 from CSCC012023/64-findEvent-query-adjust
A-Jatana Jul 30, 2023
53a7790
Merge pull request #31 from CSCC012023/64-findEvent-query-adjust
A-Jatana Jul 30, 2023
1c6e114
PP-42 added signed in user authorization & logout
nishus24 Jul 30, 2023
68e6dd2
Merge pull request #32 from CSCC012023/42-logout
nishus24 Jul 30, 2023
cbaa428
[pp-56]:friend feature is modified with friend request fucntioanlity,…
Mustafa0503 Jul 31, 2023
f6a99a2
Merge branch 'development' into 56-friend
zhaoroger Jul 31, 2023
86030f4
Merge pull request #33 from CSCC012023/56-friend
zhaoroger Jul 31, 2023
b906d7f
Delete server/node_modules directory
zhaoroger Jul 31, 2023
87374ac
Update .gitignore
zhaoroger Jul 31, 2023
5ff308d
PP-51: Added phone number to user model and signup
A-Jatana Jul 31, 2023
eec2d9d
Merge pull request #34 from CSCC012023/51-phoneNumber
A-Jatana Jul 31, 2023
d0c5b75
[pp-25]:Creates grou[p chat when a user creates an event
Mustafa0503 Jul 31, 2023
5ac2808
[pp-25]:Creates grou[p chat when a user creates an event
Mustafa0503 Jul 31, 2023
cdca947
[pp-25]:completed creation groupt chat and adding people who enrolled…
Mustafa0503 Jul 31, 2023
8a474ee
Merge pull request #35 from CSCC012023/25-conversation
Mustafa0503 Jul 31, 2023
5c21af9
[frontend]:small change front end for loading page
Mustafa0503 Jul 31, 2023
ffb46e8
[frontend]:small modify front end of the loading page
Mustafa0503 Jul 31, 2023
4e1f34f
[frontend]:change relativbe position
Mustafa0503 Jul 31, 2023
695d34d
[frontend]:change absolute position
Mustafa0503 Jul 31, 2023
4d91502
Merge pull request #36 from CSCC012023/frontend
Mustafa0503 Jul 31, 2023
3473aaf
54-user can no longer see their own created events on the findEvents …
zhaoroger Aug 1, 2023
10d2137
Hotfix: Fixed merge conflicts
zhaoroger Aug 1, 2023
d879523
55-Setup twillo API for SMS notifications on enrollment
A-Jatana Aug 1, 2023
4d713ff
Merge pull request #37 from CSCC012023/54-search-adjust
A-Jatana Aug 1, 2023
f52bce3
55 - Edited sms message
A-Jatana Aug 1, 2023
aa01ae7
[pp-25]:when a user creates and event it will create a group caht inc…
Mustafa0503 Aug 1, 2023
b3955bc
Hotfix: resolved merge conflicts
zhaoroger Aug 1, 2023
15ed4c7
Merge pull request #38 from CSCC012023/25-group
zhaoroger Aug 1, 2023
f11a777
55-Added SMS notification for friend requests
A-Jatana Aug 1, 2023
b8fa5d3
[pp-25]:direct message and groupchat conversation is completed
Mustafa0503 Aug 1, 2023
7260ed2
68-Fixed update location button on profile page
A-Jatana Aug 1, 2023
9adc841
[pp-25]:small bug fixed for subscription
Mustafa0503 Aug 2, 2023
cfbe604
[pp-25]:small bug fixed for friend list
Mustafa0503 Aug 2, 2023
e1e4d8f
53-added filter by friend button and feature. made it work in conjunc…
zhaoroger Aug 2, 2023
d07848c
[pp-25]:changed the friend list functionality
Mustafa0503 Aug 2, 2023
637e650
53-fixed bug causing page to not load properly
zhaoroger Aug 2, 2023
ebc309b
43-Added phone number to the page, and attempted location
A-Jatana Aug 2, 2023
5ab1941
43-Updated frontend for profile setup page
A-Jatana Aug 2, 2023
52faadb
66-changed the colors and rounded the corners of the navbar
zhaoroger Aug 2, 2023
3a2f9f2
43-Fixed problems with location selector
zhaoroger Aug 2, 2023
80f1e00
43-Made frontend match color scheme, and added interests
A-Jatana Aug 2, 2023
ea1f35e
Merge branch '43-afterSignup' of https://github.com/CSCC012023/final-…
A-Jatana Aug 2, 2023
7e99fc2
Hotix: User can only close the location selector if at least one loca…
zhaoroger Aug 2, 2023
2753896
43-updated frontend
A-Jatana Aug 2, 2023
b9e4d20
Merge branch '43-afterSignup' of https://github.com/CSCC012023/final-…
zhaoroger Aug 2, 2023
991b963
Merge branch '43-afterSignup' of https://github.com/CSCC012023/final-…
zhaoroger Aug 2, 2023
898f424
[pp-25]:Now when user adds people it gets updated in realtime for se…
Mustafa0503 Aug 2, 2023
a89e296
Change the navbar UI. Also fixed navbar not working on the friends page
zhaoroger Aug 3, 2023
200a87c
66-Change the navbar UI. Also fixed navbar not working on the friends…
zhaoroger Aug 3, 2023
2ecf186
66-clean up frontend for navbar
zhaoroger Aug 3, 2023
cfe887f
66-slightly changed some animations
zhaoroger Aug 3, 2023
919de3f
Merge branch '43-afterSignup' into PP55-SMS-notifications
A-Jatana Aug 3, 2023
f00bda3
Merge pull request #44 from CSCC012023/PP55-SMS-notifications
A-Jatana Aug 3, 2023
08203b9
43-Merged SMS and fixed container size
A-Jatana Aug 3, 2023
ad8a41e
[pp-25]: Current user list has been created it only creats conversait…
Mustafa0503 Aug 4, 2023
805f45c
[pp-25]: When a user deltes the event that he created the group chat …
Mustafa0503 Aug 4, 2023
a255fc1
[pp-25]: all conversation basckend is completed
Mustafa0503 Aug 4, 2023
b34dbc5
[pp-25]: front end for the friend list is in progress
Mustafa0503 Aug 4, 2023
b4acf33
[pp-25]: front end changed for the friend list
Mustafa0503 Aug 4, 2023
ba5512e
Merge pull request #51 from CSCC012023/43-profileSetupSMS
Mustafa0503 Aug 4, 2023
bebd250
Hotfix: Added back navbar UI. Added small fixes to messenger
zhaoroger Aug 4, 2023
e990a04
Hotfix: Fixed bugs in messages
zhaoroger Aug 4, 2023
f825edd
[pp-79]:functionalities utilities correct keys,u need improment compo…
Mustafa0503 Aug 4, 2023
a9f82c5
fixed waitlist
Pyrunix Aug 4, 2023
3bb74dd
43-Updated frontend for createEvent
A-Jatana Aug 4, 2023
35e5582
43- implemented chat front end
nishus24 Aug 4, 2023
1914ad1
Merge branch '43-createEvent' of https://github.com/CSCC012023/final-…
nishus24 Aug 4, 2023
d331a2e
38 event form update should be working; needs sockets
ExuApplePie Aug 4, 2023
0e42990
Merge branch '63-waitlist-hotfix' of https://github.com/CSCC012023/fi…
ExuApplePie Aug 4, 2023
8cc56d6
38 sockets reimplmented
ExuApplePie Aug 4, 2023
650dca7
43-Fixed button positioning for pfp page
A-Jatana Aug 4, 2023
32a2ea3
Merge branch '43-createEvent' of https://github.com/CSCC012023/final-…
A-Jatana Aug 4, 2023
7c7f36c
43- Updated routes and site logo
nishus24 Aug 4, 2023
a24c6ef
Merge branch '43-createEvent' of https://github.com/CSCC012023/final-…
nishus24 Aug 4, 2023
514d735
profile ui update
Pyrunix Aug 4, 2023
b001bb1
Create PB.md
A-Jatana Aug 4, 2023
d2319f6
43- fixed frontend elements
nishus24 Aug 4, 2023
16f86fd
Merge pull request #54 from CSCC012023/64-profile-ui
A-Jatana Aug 4, 2023
d467f17
Merge pull request #55 from CSCC012023/38-hotfix
A-Jatana Aug 4, 2023
3bdc624
Hotfix: Fixed friend enrolled event list generation bug
zhaoroger Aug 4, 2023
068d35c
[pp-7]:friend list and request list in progress
Mustafa0503 Aug 4, 2023
bd3c1c6
34- fixed frontend bugs
nishus24 Aug 4, 2023
e93234b
34-Fixed location UI
A-Jatana Aug 4, 2023
ee29bad
Merge branch '34-updatedLogin' of https://github.com/CSCC012023/final…
A-Jatana Aug 4, 2023
96158cd
[pp-7]:friend list and request list in progress
Mustafa0503 Aug 4, 2023
a2def29
34-fixed messaging bug
A-Jatana Aug 4, 2023
a21b236
frontend ui for friends
Pyrunix Aug 4, 2023
682200e
Merge branch '7-friendFront' of https://github.com/CSCC012023/final-p…
Pyrunix Aug 4, 2023
7baca93
Revert "frontend ui for friends"
Pyrunix Aug 4, 2023
a414ff3
Revert "Merge branch '7-friendFront' of https://github.com/CSCC012023…
Pyrunix Aug 4, 2023
0de8270
34-Added eventcard popup to updated frontend
A-Jatana Aug 4, 2023
17d59ee
Merge pull request #56 from CSCC012023/36-updatedFrontend
A-Jatana Aug 4, 2023
2f98f0f
Merge pull request #57 from CSCC012023/7-friendFront
Mustafa0503 Aug 4, 2023
5285c17
[pp-7]:friend list front end is completed
Mustafa0503 Aug 4, 2023
b9e8b39
67-Added recommended button that works together with location and fri…
zhaoroger Aug 4, 2023
84b0fea
Delete daw
zhaoroger Aug 5, 2023
3535d66
Create iteration-04.plan.md
zhaoroger Aug 5, 2023
7a085cb
Create Sprint-03-review.md
zhaoroger Aug 5, 2023
3a33425
Update PB.md
zhaoroger Aug 5, 2023
0a2985f
Add files via upload
zhaoroger Aug 5, 2023
fa92e23
Update Sprint-03-review.md
zhaoroger Aug 5, 2023
b943b27
Update iteration-04.plan.md
zhaoroger Aug 5, 2023
963bc0e
Update PB.md
zhaoroger Aug 5, 2023
fc3396e
Add files via upload
Pyrunix Aug 5, 2023
2a81fcf
Delete burndown (1).pdf
Pyrunix Aug 5, 2023
c2c19be
Add files via upload
Pyrunix Aug 5, 2023
5d78d94
Update PB.md
zhaoroger Aug 5, 2023
8fd6ad0
Update PB.md
zhaoroger Aug 5, 2023
3382b5b
Add files via upload
zhaoroger Aug 5, 2023
847aa1a
Update README.md
zhaoroger Aug 5, 2023
24c4d03
Update README.md
zhaoroger Aug 5, 2023
c47ab6a
67-overhauled findEvent UI
zhaoroger Aug 7, 2023
163f61c
Hotfix: Added to gitignore
zhaoroger Aug 7, 2023
6bd8fd9
docs: add sprint 4 marks
winsyuan Aug 7, 2023
5936171
hotfix: added packages to server
A-Jatana Aug 8, 2023
1b2d3c5
hotfix: removed wallpaper from search page and added a background color
A-Jatana Aug 8, 2023
24f79c8
hotfix: removed wallpaper from search page and added a background color
A-Jatana Aug 8, 2023
edd74c0
36-updated edit profile UI to match color scheme
A-Jatana Aug 8, 2023
418c817
Added to gitignore
zhaoroger Aug 8, 2023
164c522
Merge branch 'merge-branch' into 67-Find-Event-UI
zhaoroger Aug 8, 2023
85d2945
Merge pull request #59 from CSCC012023/67-Find-Event-UI
zhaoroger Aug 8, 2023
07e8d47
hotfix: uploading profile picture is now optional
A-Jatana Aug 8, 2023
c422a57
Hotfix: Fixed UI problems with navbar and findEvent for smaller screens
zhaoroger Aug 9, 2023
ffae1ef
Hotfix: fixed some CSS for form on smaller pages
zhaoroger Aug 9, 2023
5de8fa9
Hotfix: Added the friend request notif to the findEvent page
zhaoroger Aug 9, 2023
b1d0a7d
Hotfix: Small change to comments
zhaoroger Aug 9, 2023
9366832
hotfix: updated profile UI
A-Jatana Aug 9, 2023
b643271
Merge pull request #60 from CSCC012023/34-updatedLogin
A-Jatana Aug 9, 2023
ec703f1
UI - Overhauled friend request UI and then made it a popup. Added but…
zhaoroger Aug 10, 2023
3061775
Merge pull request #61 from CSCC012023/UI-Friend-Request
zhaoroger Aug 10, 2023
87fc4fe
hotfix: added padding to container
A-Jatana Aug 10, 2023
5eb0aaf
Merge merge-branch and main
zhaoroger Aug 10, 2023
dce78b1
Fixed small issue from merge
zhaoroger Aug 10, 2023
28e6717
Merge pull request #62 from CSCC012023/merge-branch
zhaoroger Aug 10, 2023
54ae7b3
Hotfix: Minor CSS things on findEvent
zhaoroger Aug 10, 2023
fbc172d
Hotfix: Minor CSS things on findEvent
zhaoroger Aug 10, 2023
10359a9
Delete currentFriend.css
zhaoroger Aug 10, 2023
1d7440f
Delete request.css
zhaoroger Aug 10, 2023
ac06f12
hotfix- fixed signup and verification frontend
nishus24 Aug 10, 2023
404df3d
Hotfix: Fixed currentFriend.js after deleting useless css file
zhaoroger Aug 10, 2023
9690c6a
Merge pull request #63 from CSCC012023/30-verification
A-Jatana Aug 10, 2023
b347e95
hotfix- profile responsiveness with smaller screen
nishus24 Aug 10, 2023
121bf2c
updated css
ExuApplePie Aug 10, 2023
f7bd8eb
add files
ExuApplePie Aug 10, 2023
e27e884
updated css
ExuApplePie Aug 10, 2023
872dcf0
interest selection fix
Pyrunix Aug 10, 2023
56ff111
Fixed and finalized UI for theme popup
zhaoroger Aug 10, 2023
6db2c7d
Fixed and finalized UI for theme popup
zhaoroger Aug 10, 2023
a028bda
Fixed merge conflicts with main from theme-ui-revamp
zhaoroger Aug 10, 2023
73cc4c0
Merge pull request #64 from CSCC012023/theme-ui-revamp
zhaoroger Aug 10, 2023
182f92d
UI-Updated UI for friend components, and specifically addFriends
zhaoroger Aug 10, 2023
1e3fab9
hotfix: added default picture for create event
A-Jatana Aug 10, 2023
957d200
hotfix for event image to preserve aspect ratio
ExuApplePie Aug 10, 2023
25a4d5e
Merge branch 'main' of https://github.com/CSCC012023/final-project-s2…
ExuApplePie Aug 10, 2023
2605d69
Updated addFriend UI
zhaoroger Aug 10, 2023
8354384
hotfix- fixing margins
nishus24 Aug 10, 2023
95eb483
added animation to toggle button for your or add friends
zhaoroger Aug 10, 2023
bdac898
Merge pull request #65 from CSCC012023/UI-Friend
zhaoroger Aug 10, 2023
ec82f84
made event card body fill rest of container
ExuApplePie Aug 10, 2023
d05e472
Merge branch 'main' of https://github.com/CSCC012023/final-project-s2…
ExuApplePie Aug 10, 2023
9171898
hotfix for event card image on smaller screens
ExuApplePie Aug 10, 2023
c3f9ed1
hotfix- fixed frontend for profile
nishus24 Aug 10, 2023
70fb7bb
Hotfix: Many small UI tweaks
zhaoroger Aug 10, 2023
44d99b7
Fixed merge issues
zhaoroger Aug 10, 2023
b2a4997
changed navbar titles
zhaoroger Aug 10, 2023
0969bac
I changed something
zhaoroger Aug 10, 2023
f3457a0
Add files via upload
A-Jatana Aug 11, 2023
0a34f49
docs: sprint 3 & 4 remarks
winsyuan Aug 15, 2023
2e99916
hotfix: updated API tokens
A-Jatana Aug 30, 2023
601ccc3
Update README.md
zhaoroger Sep 3, 2023
610ced5
Update README.md
zhaoroger Sep 3, 2023
7190271
Hotfix: Fixed unnoticed bug in friend filter when a friend has multip…
zhaoroger Sep 3, 2023
3670c80
Merge branch 'main' of https://github.com/CSCC012023/final-project-s2…
zhaoroger Sep 3, 2023
b53dbe9
Create file
zhaoroger Sep 9, 2023
d840cf8
Rename file to file
zhaoroger Sep 9, 2023
7b2432f
Uploaded readme gifs
zhaoroger Sep 9, 2023
1348bac
Update README.md
zhaoroger Sep 9, 2023
d2469b5
Update README.md
zhaoroger Sep 9, 2023
15a7198
Update README.md
zhaoroger Sep 9, 2023
0fce9e1
Update README.md
zhaoroger Sep 9, 2023
a61c1a9
Update README.md
zhaoroger Sep 9, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[pp-56]:commenting
  • Loading branch information
Mustafa0503 committed Jul 29, 2023
commit d1a62bd1c6bca725798facdd200daf7c0390bfd2
4 changes: 2 additions & 2 deletions server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ app.get('/checkFriendStatus/:userId/:friendId', async (req, res) => {
await user.save();
}

// Remove userId from friend's friend list
// Remove userId from friend's friend list both direnctional
const index2 = friend.friend.indexOf(userId);
if (index2 !== -1) {
friend.friend.splice(index2, 1);
Expand Down Expand Up @@ -233,7 +233,7 @@ app.post('/addFriend/:userId', async (req, res) => {
}



// Check if the friend's ID already exists in the friend list
if (user.friend.includes(friendId)) {
return res.status(400).json({ error: 'Friend already exists' });
Expand Down