Skip to content

Commit

Permalink
🌺 Lens and Hey v3: v44 (#lens-v3)
Browse files Browse the repository at this point in the history
Summary: Migrated to Lens v3 with code formatting adjustments.

Highlights:

• Reformatted `deleteMany` call in `assign.ts` for clarity.
• Corrected import order in `MarkupLink/index.tsx`.
• Adjusted `Rank` component props formatting in `Rank.tsx`.

Read more: https://pierre.co/hey/hey/lens-v3
  • Loading branch information
Sagar authored and Pierre committed Dec 7, 2024
1 parent 398096e commit 955f054
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
5 changes: 4 additions & 1 deletion apps/api/src/routes/internal/permissions/assign.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,10 @@ export const post = [
}

await prisma.profilePermission.deleteMany({
where: { permissionId: id as string, profileId: accountAddress as string }
where: {
permissionId: id as string,
profileId: accountAddress as string
}
});

await postUpdateTasks(accountAddress, id, false);
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/components/Shared/Markup/MarkupLink/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { MarkupLinkProps } from "@hey/types/misc";
import Cashtag from "./Cashtag";
import Group from "./Group";
import ExternalLink from "./ExternalLink";
import Group from "./Group";
import Hashtag from "./Hashtag";
import Mention from "./Mention";

Expand Down
6 changes: 5 additions & 1 deletion apps/web/src/components/Staff/Users/Overview/Tool/Rank.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ interface RankProps {
accountAddress: string;
}

const Rank: FC<RankProps> = ({ handle, lensClassifierScore, accountAddress }) => {
const Rank: FC<RankProps> = ({
handle,
lensClassifierScore,
accountAddress
}) => {
const getRank = async (strategy: string) => {
try {
const { data } = await axios.get(
Expand Down

0 comments on commit 955f054

Please sign in to comment.