PhilanthropyDataCommons / service

A project for collecting and serving public information associated with grant applications
GNU Affero General Public License v3.0
8 stars 2 forks source link

Expect loading an org or CM by `taxId` to be many, not one #1128

Open bickelj opened 1 month ago

bickelj commented 1 month ago

As of ef3174e9be11a4b2e2e299e2101c3db365756c01, organization is unique not solely by taxId (formerly externalId), but by the combination of taxId and name. This is well and good. Except loadOrganizationByTaxId and its caller seem to expect one row at the moment. So those functions probably need an update to include name or expect a list.