Browse Source

Fix tests & remove code smell

Nicolas Meienberger 3 years ago
parent
commit
f72f42de85

+ 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) {