mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 07:50:31 +00:00
call seeding function
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user