Skip to content

Commit 9398fcb

Browse files
committed
Update
1 parent fb3d435 commit 9398fcb

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

app/[username]/page.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff 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,

utils/fetchActivity.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)