From be2c579fd276013885dab6b848c0befc5fd596c3 Mon Sep 17 00:00:00 2001 From: Bottersnike Date: Wed, 19 Oct 2022 23:28:54 +0100 Subject: [PATCH 1/2] Correct the level 15 folder ID for Museca 1+1/2 --- database-seeds/collections/tables.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database-seeds/collections/tables.json b/database-seeds/collections/tables.json index a49e278b0..f33ad41ce 100644 --- a/database-seeds/collections/tables.json +++ b/database-seeds/collections/tables.json @@ -2334,7 +2334,7 @@ "F347921c8d57ccc0eb20eb092c9b55bf5eabb4f9fe7da00738876699cf1035c8c", "F56d1157c3e10438262dfb2af88569075a8f5c484a7aef08a6a84566319af24ea", "Fc5911b7640bf2db62d2acca372f1c5f6c7baf12fec05d990bb8c927ca6241b77", - "Fc5911b7640bf2db62d2acca372f1c5f6c7baf12fec05d990bb8c927ca6241b77", + "Fe1171c1e6c031cddc03080911b081e494e3bd526d4274b99b72043135ff6e17d", "F9ae7894021d3a3ee23d7a5079e75e2a2234bd54c4735b7caf6327a7c9f4642ed" ], "game": "museca", From 11956c6c86baa0276a43676b475dbfa7093ce906 Mon Sep 17 00:00:00 2001 From: zkldi <20380519+zkldi@users.noreply.github.com> Date: Fri, 21 Oct 2022 01:09:48 +0100 Subject: [PATCH 2/2] test: add regression tests for duplicate folderIDs in table --- database-seeds/scripts/test/table-folders.test.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/database-seeds/scripts/test/table-folders.test.ts b/database-seeds/scripts/test/table-folders.test.ts index b7885d199..9b1f685b5 100644 --- a/database-seeds/scripts/test/table-folders.test.ts +++ b/database-seeds/scripts/test/table-folders.test.ts @@ -31,6 +31,12 @@ for (const table of tables) { success++; } } + + if (table.folders.length !== [...new Set(table.folders)].length) { + console.error(chalk.red(`[ERR] | ${pretty} | Has duplicate folders.`)); + + fails++; + } } console.log(