From 5bf0d920b0cab313ff172dcd362ce16f15b3ad25 Mon Sep 17 00:00:00 2001 From: ZhengJin Date: Fri, 1 Nov 2024 19:27:29 +0800 Subject: [PATCH] fix: apply suggestion --- app/core/service/ProxyCacheService.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/core/service/ProxyCacheService.ts b/app/core/service/ProxyCacheService.ts index fdaafd9a..801455b9 100644 --- a/app/core/service/ProxyCacheService.ts +++ b/app/core/service/ProxyCacheService.ts @@ -68,12 +68,12 @@ export class ProxyCacheService extends AbstractService { if (cachedStoreKey) { const nfsBytes = await this.nfsAdapter.getBytes(cachedStoreKey); const nfsString = Buffer.from(nfsBytes!).toString(); - const nfsPkgManifgest = JSON.parse(nfsString); - return nfsPkgManifgest; + const nfsPkgManifest = JSON.parse(nfsString); + return nfsPkgManifest; } } catch (e) { this.logger.error(e); - this.logger.error('[ShowPackageController.show:error] get cache error, ignore'); + this.logger.error('[ProxyCacheService.getPackageManifest:error] get cache error, ignore'); } const manifest = await this.getRewrittenManifest(fullname, fileType);