diff --git a/apps/api/prisma/seedData.ts b/apps/api/prisma/seedData.ts index a93a43f..e641e65 100644 --- a/apps/api/prisma/seedData.ts +++ b/apps/api/prisma/seedData.ts @@ -1,5 +1,7 @@ import { range } from 'lodash-es' +const trunkGameVersion = 33 + export const data = { races: [ ['Ko', 'Kobold'], @@ -174,7 +176,7 @@ export const data = { baseUrl: 'https://archive.nemelex.cards', morgueUrl: 'https://archive.nemelex.cards/morgue', logfiles: [ - ...range(11, 32).map((version) => ({ + ...range(11, trunkGameVersion).map((version) => ({ path: `/meta/crawl-0.${version}/logfile`, version: `0.${version}`, morgueUrlPrefix: undefined, @@ -193,7 +195,7 @@ export const data = { baseUrl: 'https://crawl.dcss.io', morgueUrl: 'https://crawl.dcss.io/crawl/morgue', logfiles: [ - ...range(30, 32).map((version) => ({ + ...range(30, trunkGameVersion).map((version) => ({ path: `/crawl/meta/crawl-0.${version}/logfile`, version: `0.${version}`, morgueUrlPrefix: undefined, @@ -212,7 +214,7 @@ export const data = { baseUrl: 'https://crawl.xtahua.com', morgueUrl: 'https://crawl.xtahua.com/crawl/morgue', logfiles: [ - ...range(14, 32).map((version) => ({ + ...range(14, trunkGameVersion).map((version) => ({ path: `/crawl/meta/0.${version}/logfile`, version: `0.${version}`, morgueUrlPrefix: undefined, @@ -231,7 +233,7 @@ export const data = { baseUrl: 'https://underhound.eu', morgueUrl: 'https://underhound.eu/crawl/morgue', logfiles: [ - ...range(10, 32).map((version) => ({ + ...range(10, trunkGameVersion).map((version) => ({ path: `/crawl/meta/0.${version}/logfile`, version: `0.${version}`, morgueUrlPrefix: undefined, @@ -317,7 +319,7 @@ export const data = { baseUrl: 'https://cbro.berotato.org', morgueUrl: 'https://cbro.berotato.org/morgue', logfiles: [ - ...range(24, 32).map((version) => ({ + ...range(24, trunkGameVersion).map((version) => ({ path: `/meta/0.${version}/logfile`, version: `0.${version}`, morgueUrlPrefix: undefined, @@ -355,7 +357,7 @@ export const data = { baseUrl: 'http://crawl.akrasiac.org', morgueUrl: 'http://crawl.akrasiac.org/rawdata', logfiles: [ - ...range(4, 32).map((version) => ({ + ...range(4, trunkGameVersion).map((version) => ({ path: `/logfile${version.toString().padStart(2, '0')}`, version: `0.${version}`, morgueUrlPrefix: undefined, @@ -379,7 +381,7 @@ export const data = { baseUrl: 'http://lazy-life.ddo.jp/mirror', morgueUrl: 'http://lazy-life.ddo.jp:8080/morgue', logfiles: [ - ...range(14, 32).map((version) => ({ + ...range(14, trunkGameVersion).map((version) => ({ path: `/meta/0.${version}/logfile`, version: `0.${version}`, morgueUrlPrefix: undefined, @@ -398,7 +400,7 @@ export const data = { baseUrl: 'https://crawl.project357.org', morgueUrl: 'https://crawl.project357.org/morgue', logfiles: [ - ...range(15, 32).map((version) => ({ + ...range(15, trunkGameVersion).map((version) => ({ path: `/dcss-logfiles-0.${version}`, version: `0.${version}`, morgueUrlPrefix: undefined,