refactor(jslib): remove `url` and `attribute` from `getAddress`, fix build
ci/woodpecker/push/woodpecker Pipeline was successful
Details
ci/woodpecker/push/woodpecker Pipeline was successful
Details
parent
db85fc11a6
commit
dfcc1b1969
|
@ -217,13 +217,7 @@ export class UpEndApi {
|
|||
}
|
||||
response = await fetch(`${this.apiUrl}/address?type=${input}`);
|
||||
} else {
|
||||
if ("attribute" in input) {
|
||||
response = await fetch(
|
||||
`${this.apiUrl}/address?attribute=${input.attribute}`
|
||||
);
|
||||
} else if ("url" in input) {
|
||||
response = await fetch(`${this.apiUrl}/address?url=${input.url}`);
|
||||
} else if ("urlContent" in input) {
|
||||
if ("urlContent" in input) {
|
||||
response = await fetch(
|
||||
`${this.apiUrl}/address?url_content=${input.urlContent}`
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue