Skip to content

Commit

Permalink
feat: pr feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
manuel-rw committed Dec 14, 2024
1 parent 170d290 commit 2582a31
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion apps/nextjs/src/components/user-avatar-menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export const UserAvatarMenu = ({ children, availableUpdates }: UserAvatarMenuPro
leftSection={<IconBellRinging size="1rem" />}
>
<Text fw="bold" size="sm">
{t("updateAvailable", { countUpdates: availableUpdates.length, tag: availableUpdates[0].tag_name })}
{t("updateAvailable", { countUpdates: availableUpdates.length, tag: availableUpdates[0].tagName })}
</Text>
</Menu.Item>
<Menu.Divider />
Expand Down
1 change: 0 additions & 1 deletion packages/cron-jobs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
"@homarr/server-settings": "workspace:^0.1.0",
"@homarr/translation": "workspace:^0.1.0",
"@homarr/validation": "workspace:^0.1.0",
"octokit": "^4.0.2",
"semver-parser": "^4.1.7"
},
"devDependencies": {
Expand Down
1 change: 1 addition & 0 deletions packages/request-handler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"@homarr/log": "workspace:^0.1.0",
"@homarr/redis": "workspace:^0.1.0",
"dayjs": "^1.11.13",
"octokit": "^4.0.2",
"pretty-print-error": "^1.1.2",
"superjson": "2.2.2"
},
Expand Down
6 changes: 3 additions & 3 deletions packages/request-handler/src/update-checker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { createCachedRequestHandler } from "@homarr/request-handler/lib/cached-r
import packageJson from "../../../package.json";

export const updateCheckerRequestHandler = createCachedRequestHandler({
queryKey: "",
queryKey: "homarr-update-checker",
cacheDuration: dayjs.duration(1, "hour"),
async requestAsync(_) {
const octokit = new Octokit();
Expand Down Expand Up @@ -47,13 +47,13 @@ export const updateCheckerRequestHandler = createCachedRequestHandler({
name: release.name,
contentHtml: release.body_html,
url: release.html_url,
tag_name: release.tag_name,
tagName: release.tag_name,
})),
};
},
createRedisChannel() {
return createChannelWithLatestAndEvents<{
availableUpdates: { name: string | null; contentHtml?: string; url: string; tag_name: string }[];
availableUpdates: { name: string | null; contentHtml?: string; url: string; tagName: string }[];
}>("homarr:update");
},
});
6 changes: 3 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2582a31

Please sign in to comment.