diff --git a/src/queries/getAllOrcidAccountsWithSplits.ts b/src/queries/getAllOrcidAccountsWithSplits.ts index f5c1120..477f18b 100644 --- a/src/queries/getAllOrcidAccountsWithSplits.ts +++ b/src/queries/getAllOrcidAccountsWithSplits.ts @@ -24,14 +24,14 @@ export async function getAllOrcidAccountsWithSplits( li.account_id as "accountId", li.owner_address as "ownerAddress", li.owner_account_id as "ownerAccountId", - li.is_linked as "isLinked", + li.are_splits_valid as "isLinked", li.identity_type as "identityType", sr.receiver_account_id as "receiverAccountId", sr.weight as "weight" FROM ${dbSchema}.linked_identities li INNER JOIN ${dbSchema}.splits_receivers sr ON li.account_id = sr.sender_account_id WHERE li.identity_type = 'orcid' - AND li.is_linked = true + AND li.are_splits_valid = true ORDER BY li.account_id `;