diff --git a/src/routes/packs.ts b/src/routes/packs.ts index e77918f..30ed78b 100644 --- a/src/routes/packs.ts +++ b/src/routes/packs.ts @@ -4,4 +4,4 @@ import PackAPI from "../pack_api"; export const packRoutes = express.Router(); packRoutes.get("/packs", PackAPI.getPacks); -packRoutes.get("/getpack", PackAPI.downloadSinglePack); \ No newline at end of file +packRoutes.get("/getpack", PackAPI.downloadSinglePack); diff --git a/src/server.ts b/src/server.ts index a38a10e..a572976 100644 --- a/src/server.ts +++ b/src/server.ts @@ -50,5 +50,11 @@ PackService.getInitialList().then(() => { httpServer.listen(PORT, () => console.log(`The server is running on port ${PORT}`) ); - console.log('initialized with ',PackService.getPackList().length, 'packs in ', Math.round(performance.now() - start), 'ms') + console.log( + "initialized with ", + PackService.getPackList().length, + "packs in ", + Math.round(performance.now() - start), + "ms" + ); }); diff --git a/src/services/pack_service.ts b/src/services/pack_service.ts index e4f97a9..6528329 100644 --- a/src/services/pack_service.ts +++ b/src/services/pack_service.ts @@ -60,7 +60,7 @@ export default class PackService { public static findByName = (name: string): Pack | undefined => { for (let i = 0; i < PackService.packList.length; i++) { let pack = PackService.packList[i]; - + if (pack.name === name) { return pack; }