diff --git a/src/statistics/statictics.controller.ts b/src/statistics/statictics.controller.ts index fe93a3b..726bbcd 100644 --- a/src/statistics/statictics.controller.ts +++ b/src/statistics/statictics.controller.ts @@ -44,7 +44,7 @@ export class StatisticsController { ); if (rtn === undefined) { rtn = await this.statisticsService.getCadetPerCluster(2); - await this.cacheManager.set('getCadetPerCluster', rtn, 60); + await this.cacheManager.set('getCadetPerCluster', rtn, 60000); } return rtn; } diff --git a/src/tag-log-v2/tag-log-v2.controller.ts b/src/tag-log-v2/tag-log-v2.controller.ts index 42a155a..ef7f39b 100644 --- a/src/tag-log-v2/tag-log-v2.controller.ts +++ b/src/tag-log-v2/tag-log-v2.controller.ts @@ -181,7 +181,7 @@ export class TagLogController { await this.cacheManager.get('getCadetPerCluster'); if (cadetPerCluster === undefined) { cadetPerCluster = await this.statisticsService.getCadetPerCluster(2); - await this.cacheManager.set('getCadetPerCluster', cadetPerCluster, 60); + await this.cacheManager.set('getCadetPerCluster', cadetPerCluster, 60000); } const gaepo = +cadetPerCluster.find((v) => v.cluster === 'GAEPO')?.cadet; const seocho = +cadetPerCluster.find((v) => v.cluster === 'SEOCHO')?.cadet;