diff --git a/convex/util.ts b/convex/util.ts index fe9fcff..d7606fe 100644 --- a/convex/util.ts +++ b/convex/util.ts @@ -97,10 +97,3 @@ async function getUserOrThrow(ctx: QueryCtx | MutationCtx) { export const getUser = async (ctx: QueryCtx | MutationCtx | ActionCtx) => { return await ctx.auth.getUserIdentity(); }; - -export const getUserById = async ( - ctx: QueryCtx | MutationCtx, - userId: string -) => { - return ctx.db; -}; diff --git a/src/app/profile/[userId]/page.tsx b/src/app/profile/[userId]/page.tsx index 19921d0..d450bb9 100644 --- a/src/app/profile/[userId]/page.tsx +++ b/src/app/profile/[userId]/page.tsx @@ -115,7 +115,7 @@ export default function ProfilePage() { const unfollowUser = useMutation(api.follows.unfollowUser); return ( -