浏览代码

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:
   ROOT_FOLDER: /test
   JWT_SECRET: "secret"
+  ROOT_FOLDER_HOST: /tipi
     
 jobs:
   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);
 };
 
-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');
 
   if (!version) {