diff --git a/src/node/node.ts b/src/node/node.ts index c304166..e43c526 100644 --- a/src/node/node.ts +++ b/src/node/node.ts @@ -57,7 +57,7 @@ export class CodexNode { ): Promise>> { const url = this.url + Api.config.prefix + "/spr"; - if (type === "json") { + if (type == "json") { return Fetch.safeJson(url, { method: "GET", headers: { @@ -84,7 +84,7 @@ export class CodexNode { ): Promise>> { const url = this.url + Api.config.prefix + "/node/peerid"; - if (type === "json") { + if (type == "json") { return Fetch.safeJson(url, { method: "GET", headers: {