From 798a708793c3a98dbb64ac72d0657b23fb192f3a Mon Sep 17 00:00:00 2001 From: Brendan Chen Date: Thu, 9 Jan 2025 13:23:21 -0800 Subject: [PATCH] call seeding function --- src/index.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/index.ts b/src/index.ts index 3a7ebc3..a931d05 100644 --- a/src/index.ts +++ b/src/index.ts @@ -28,6 +28,11 @@ async function main() { // TODO: Migrate all logic over to this repository const apiBasedRepository = new ApiBasedRepository(); + const systemIds = ["263"]; + await Promise.all(systemIds.map(async (systemId) => { + await apiBasedRepository.seedCacheForSystemId(systemId); + })); + const { url } = await startStandaloneServer(server, { listen: { port: process.env.PORT ? parseInt(process.env.PORT) : 4000,