From d326a3328f3f1ef1ed0ecb60b03aea6b148ba08c Mon Sep 17 00:00:00 2001 From: tanghel Date: Mon, 19 Feb 2024 13:12:03 +0200 Subject: [PATCH] ownerAddress instead of owner --- action/index.cjs | 2 +- src/bot.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/action/index.cjs b/action/index.cjs index 8a9e8d7..febed8b 100644 --- a/action/index.cjs +++ b/action/index.cjs @@ -188052,7 +188052,7 @@ const robot = (app) => { } async function getAccountOwnerFromApi(address) { const apiUrl = getApiUrl(); - const accountOwnerResponse = await axios_1.default.get(`${apiUrl}/accounts/${address}?extract=owner`); + const accountOwnerResponse = await axios_1.default.get(`${apiUrl}/accounts/${address}?extract=ownerAddress`); if (accountOwnerResponse && accountOwnerResponse.data) { return accountOwnerResponse.data; } diff --git a/src/bot.ts b/src/bot.ts index 7c4c89d..850a0fb 100644 --- a/src/bot.ts +++ b/src/bot.ts @@ -94,7 +94,7 @@ export const robot = (app: Probot) => { async function getAccountOwnerFromApi(address: string): Promise { const apiUrl = getApiUrl(); - const accountOwnerResponse = await axios.get(`${apiUrl}/accounts/${address}?extract=owner`); + const accountOwnerResponse = await axios.get(`${apiUrl}/accounts/${address}?extract=ownerAddress`); if (accountOwnerResponse && accountOwnerResponse.data) { return accountOwnerResponse.data; }