From 3090cdae6d407ef561b390234b8e1863f25f41d7 Mon Sep 17 00:00:00 2001 From: tree Date: Sun, 5 Nov 2023 22:43:36 +0100 Subject: [PATCH] fix rom2 id --- README.md | 2 +- events/events.yaml | 2 +- index.js | 6 ++++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0ff8a5b..f27c270 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ research and community of [Web3Privacy Now](https://web3privacy.info). | meetup | `lju1` | 2024/Jun | 🇸🇮 Ljubljana | - | W3PN Hackathon | - | | | meetup | `bcn2` | 2024/Jul | 🇪🇸 Barcelona | - | ETHBarcelona (?) | - | | | meetup | `bru1` | 2024/Jul | 🇧🇪 Brussels | - | [EthCC 7](https://www.ethcc.io/) | - | | -| meetup | `rom1` | 2024/Oct | 🇮🇹 Rome | - | ETHRome 2024 | - | | +| meetup | `rom2` | 2024/Oct | 🇮🇹 Rome | - | ETHRome 2024 | - | | | summit | `s3` | 2024/Nov | 🇨🇿 Brno | - | ETHBrno 2024 | - | | | meetup | `dvc1` | 2024/Q4 | 🏴‍☠️ SE Asia | - | [Devcon 7](https://devcon.org/) | - | | diff --git a/events/events.yaml b/events/events.yaml index 630e8de..d93ffad 100644 --- a/events/events.yaml +++ b/events/events.yaml @@ -103,7 +103,7 @@ country: be coincidence: "[EthCC 7](https://www.ethcc.io/)" -- id: w3pm-rom1 +- id: w3pm-rom2 type: meetup date: "2024/Oct" city: Rome diff --git a/index.js b/index.js index 31f6245..655d180 100644 --- a/index.js +++ b/index.js @@ -24,12 +24,18 @@ async function test() { const validator = ajv.compile(schema); const list = await _loadYaml(`./events/events.yaml`); + const ids = []; for (const item of list) { Deno.test(`${item.id}`, async () => { if (!validator(item)) { throw validator.errors; } + if (ids.includes(item.id)) { + throw `ID exists: ${item.id}` + } + + ids.push(item.id) }); } }