Skip to content

Commit

Permalink
feat(core): added ubiquitous language support (#1001)
Browse files Browse the repository at this point in the history
* feat(core): added ubiquitous language support

* Create rude-spiders-chew.md
  • Loading branch information
boyney123 authored Dec 5, 2024
1 parent 0678c46 commit a907d96
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/rude-spiders-chew.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@eventcatalog/core": patch
---

feat(core): added ubiquitous language support
3 changes: 0 additions & 3 deletions eventcatalog/src/utils/collections/domains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,6 @@ export const getDomains = async ({ getAllVersions = true }: Props = {}): Promise
export const getUbiquitousLanguage = async (domain: Domain): Promise<UbiquitousLanguage[]> => {
const { collection, data, slug } = domain;

const allUbiquitousLanguages = await getCollection('ubiquitousLanguages');
console.log('allUbiquitousLanguages', allUbiquitousLanguages, collection, slug, data.name);

const ubiquitousLanguages = await getCollection('ubiquitousLanguages', (ubiquitousLanguage) => {
return ubiquitousLanguage.id.includes(`${collection}/${data.name}`);
});
Expand Down

0 comments on commit a907d96

Please sign in to comment.