Skip to content

Commit

Permalink
Merge pull request #579 from CodeForAfrica/feature/test-standard-schema
Browse files Browse the repository at this point in the history
Migrate to the new standard schema
  • Loading branch information
koechkevin authored Sep 15, 2023
2 parents e1dba35 + 4ac14dc commit 6cf4530
Show file tree
Hide file tree
Showing 7 changed files with 118 additions and 598 deletions.
347 changes: 0 additions & 347 deletions apps/charterafrica/src/lib/ecosystem/airtable.old.js

This file was deleted.

5 changes: 1 addition & 4 deletions apps/charterafrica/src/lib/ecosystem/airtable/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,13 @@ async function data(config) {
organisationTableId,
contributorTableId,
partnersTableId,
socialMediaTableId,
},
} = config;
const toolsData = await table(baseId, toolTableId);
const contributorsData = await table(baseId, contributorTableId);
const organisationsData = await table(baseId, organisationTableId);
const socialMediaData = await table(baseId, socialMediaTableId);
const partnersData = await table(baseId, partnersTableId);
const tableData = { socialMediaData, partnersData };
const tableData = { partnersData };
const tools = toolsData
.map((item) => processTool(item, config, tableData))
.filter(Boolean);
Expand All @@ -90,7 +88,6 @@ async function data(config) {
tools,
organisations,
contributors,
socialMedia: socialMediaData,
partners: partnersData,
};
}
Expand Down
Loading

0 comments on commit 6cf4530

Please sign in to comment.