Skip to content

Commit

Permalink
Fixing parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
mutantcornholio committed May 29, 2024
1 parent 2c202b1 commit 8c2ae30
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,11 @@ export const createDB = async (config) => {
}
};

export const createServer = async (config, handler?, scorekeeper?) => {
export const createServer = async (
config: ConfigSchema,
handler: ApiHandler,
scorekeeper?,
) => {
try {
logger.info(`Creating Server`, winstonLabel);
const server = new Server(config, handler, scorekeeper);
Expand Down Expand Up @@ -239,7 +243,7 @@ const start = async (cmd: { config: string }) => {
await addCleanCandidates(config);

// Start the API server.
await createServer(config, apiHandlers, scorekeeper);
await createServer(config, apiHandlers.relay, scorekeeper);

// Start the telemetry client.
await createTelemetry(config);
Expand Down

0 comments on commit 8c2ae30

Please sign in to comment.