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; }