Skip to content

Commit

Permalink
🐛 Fix TypeScript syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
AnandChowdhary authored Dec 13, 2023
1 parent 7685333 commit 57632a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ export const update = async (shouldCommit = false) => {
// https://github.com/upptime/upptime/discussions/888
const url = replaceEnvironmentVariables(site.url);
let address = url;
if (isIP(url) {
if (isIP(url)) {
if (site.ipv6 && !isIPv6(url))

Check failure on line 162 in src/update.ts

View workflow job for this annotation

GitHub Actions / Build and Publish

Property 'ipv6' does not exist on type '{ check?: "http" | "tcp-ping" | "ws" | undefined; method?: string | undefined; name: string; url: string; port?: number | undefined; expectedStatusCodes?: number[] | undefined; assignees?: string[] | undefined; ... 14 more ...; __dangerous__body_degraded_if_text_missing?: string | undefined; }'.
throw new Error("Site URL must be IPv6 for ipv6 check");
else if (site.ipv6)

Check failure on line 164 in src/update.ts

View workflow job for this annotation

GitHub Actions / Build and Publish

Property 'ipv6' does not exist on type '{ check?: "http" | "tcp-ping" | "ws" | undefined; method?: string | undefined; name: string; url: string; port?: number | undefined; expectedStatusCodes?: number[] | undefined; assignees?: string[] | undefined; ... 14 more ...; __dangerous__body_degraded_if_text_missing?: string | undefined; }'.
Expand Down

0 comments on commit 57632a6

Please sign in to comment.