Added actor profile revisions.

This commit is contained in:
2024-10-22 03:12:42 +02:00
parent b5bef49f73
commit 3967745fb3
31 changed files with 1907 additions and 67 deletions

View File

@@ -28,3 +28,10 @@ export async function fetchCountriesByAlpha2(alpha2s, options = {}) {
return entries.map((countryEntry) => curateCountry(countryEntry));
}
export async function fetchCountries() {
const entries = await knex('countries')
.orderBy(knex.raw('coalesce(alias, name)'));
return entries.map((countryEntry) => curateCountry(countryEntry));
}