File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -41,15 +41,14 @@ const page = async ({ params: { username } }) => {
4141 const userInfo = await fetchUserInfo ( username ) ;
4242 if ( ! userInfo ) return notFound ( ) ;
4343
44-
4544 const updateRecentProfilesDb = async ( ) => {
4645 try {
4746 await connectDb ( ) ;
4847 await RecentProfiles . findOneAndUpdate (
49- { username } ,
48+ { username : userInfo . username . toLowerCase ( ) } ,
5049 {
5150 name : userInfo . name ?? userInfo . username ,
52- username : userInfo . username ,
51+ username : userInfo . username . toLowerCase ( ) ,
5352 following : userInfo . following . totalCount ,
5453 followers : userInfo . followers . totalCount ,
5554 avatarUrl : userInfo . avatarUrl ,
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ const fetchActivity = async login => {
88 } ,
99 } ) ;
1010
11- console . log ( data ) ;
11+ // console.log(data);
1212
1313 // organize data
1414 const activity = data
You can’t perform that action at this time.
0 commit comments