소스 검색

Fix tests & remove code smell

Nicolas Meienberger 3 년 전
부모
커밋
f72f42de85
2개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 0
      .github/workflows/ci.yml
  2. 1 1
      packages/system-api/src/modules/system/system.controller.ts

+ 1 - 0
.github/workflows/ci.yml

@@ -5,6 +5,7 @@ on:
 env:
 env:
   ROOT_FOLDER: /test
   ROOT_FOLDER: /test
   JWT_SECRET: "secret"
   JWT_SECRET: "secret"
+  ROOT_FOLDER_HOST: /tipi
     
     
 jobs:
 jobs:
   ci:
   ci:

+ 1 - 1
packages/system-api/src/modules/system/system.controller.ts

@@ -65,7 +65,7 @@ const getMemoryInfo = async (req: Request, res: Response<MemoryData>) => {
   res.status(200).json(result);
   res.status(200).json(result);
 };
 };
 
 
-const getVersion = async (req: Request, res: Response<{ current: string; latest: string }>) => {
+const getVersion = async (_: Request, res: Response<{ current: string; latest: string }>) => {
   let version = TipiCache.get<string>('latestVersion');
   let version = TipiCache.get<string>('latestVersion');
 
 
   if (!version) {
   if (!version) {