mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-19 08:50:29 +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
|
// TODO: Migrate all logic over to this repository
|
||||||
const apiBasedRepository = new ApiBasedRepository();
|
const apiBasedRepository = new ApiBasedRepository();
|
||||||
|
|
||||||
|
const systemIds = ["263"];
|
||||||
|
await Promise.all(systemIds.map(async (systemId) => {
|
||||||
|
await apiBasedRepository.seedCacheForSystemId(systemId);
|
||||||
|
}));
|
||||||
|
|
||||||
const { url } = await startStandaloneServer(server, {
|
const { url } = await startStandaloneServer(server, {
|
||||||
listen: {
|
listen: {
|
||||||
port: process.env.PORT ? parseInt(process.env.PORT) : 4000,
|
port: process.env.PORT ? parseInt(process.env.PORT) : 4000,
|
||||||
|
|||||||
Reference in New Issue
Block a user