Skip to content

Commit 1795314

Browse files
committed
fix errors
1 parent 8684e0d commit 1795314

File tree

6 files changed

+8
-6
lines changed

6 files changed

+8
-6
lines changed

app/components/patch-links.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
const props = defineProps<{ links: string[] }>()
2222
2323
const prettifyName = (str: string) =>
24-
`${str[0].toUpperCase()}${str.slice(1)}`.replaceAll("-_", " ")
24+
`${str[0]!.toUpperCase()}${str.slice(1)}`.replaceAll("-_", " ")
2525
2626
const getLinkName = (link: string): string => {
2727
if (/dota2\.com\/patches/.test(link)) return "Patch notes"

app/composables/use-change-detection.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import type {
22
RealtimeChannel,
33
RealtimePostgresInsertPayload,
44
} from "@supabase/realtime-js"
5+
56
import type { Database, Patch } from "~~/lib/types"
67

78
const table = "patches"

app/utils/patch.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { differenceInDays } from "date-fns"
2+
23
import type { Patch } from "~~/lib/types"
34

45
export const isRecentlyReleased = (patch: Patch | null | undefined) =>

eslint.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export default withNuxt(
3131
"error",
3232
{
3333
type: "natural",
34-
internalPattern: ["^@/.+?", "^~/.+?", "^#[a-z]+/.+?"],
34+
internalPattern: ["^@/.+?", "^~+/.+?", "^#[a-z]+/.+?"],
3535
newlinesBetween: "always",
3636
groups: [
3737
["builtin", "builtin-type"],

pnpm-workspace.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ overrides:
22
"@cloudflare/kv-asset-handler": "-"
33
"@netlify/cli": "-"
44
"@netlify/functions": "-"
5-
"@nuxt/kit": "4.0.0-alpha.1"
6-
"@nuxt/schema": "4.0.0-alpha.1"
5+
"@nuxt/kit": 4.0.0-alpha.1
6+
"@nuxt/schema": 4.0.0-alpha.1
77
"@supabase/realtime-js": 2.11.8
88
esbuild: 0.25.4
99
ioredis: "-"

server/composables/supabase.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export const serverSupabase = (event: H3Event) => {
7878
auth,
7979
extra: p256dh,
8080
environment: config.public.env,
81-
lastNotified: latestPatch![0].number,
81+
lastNotified: latestPatch![0]!.number,
8282
},
8383
{ onConflict: "endpoint" },
8484
)
@@ -121,7 +121,7 @@ export const serverSupabase = (event: H3Event) => {
121121
auth: guildId,
122122
extra: id,
123123
environment: config.public.env,
124-
lastNotified: latestPatch![0].number,
124+
lastNotified: latestPatch![0]!.number,
125125
},
126126
{ onConflict: "endpoint" },
127127
)

0 commit comments

Comments
 (0)