listAccountsByRegistrationStatus = async registrationStatus => {
  console.log(
    `Listing accounts with registrationStatus [${registrationStatus}]`
  )

  try {
    const filterParams = {
      FilterExpression: 'RegistrationStatus = :status',
      ExpressionAttributeValues: {
        ':status': registrationStatus
      }
    }
    const accounts = await fetchAllDdbAccounts({
      preLoginAccountsTableExtraParams: filterParams,
      customersTableExtraParams: filterParams
    })
    console.log(`Query returned ${accounts.length} accounts`)
    return accounts
  } catch (error) {
    console.error('Failed to list accounts:', error)
    throw error
  }
}
Fetches and returns account items with the given `registrationStatus`.