From 20be2d3257b7d8732468aa60c7cc7b591fb0326d Mon Sep 17 00:00:00 2001 From: cool_team Date: Thu, 18 May 2023 16:09:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=96=B9=E6=B3=95=E7=BC=93?= =?UTF-8?q?=E5=AD=98=E8=BF=87=E6=9C=9F=E6=97=B6=E9=97=B4=E6=97=A0=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- packages/core/package.json | 2 +- packages/core/src/decorator/index.ts | 2 +- packages/core/src/package.json | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 38bd22d..893f60f 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "dependencies": { "@alicloud/pop-core": "^1.7.12", "@cool-midway/cloud": "^6.0.0", - "@cool-midway/core": "^6.0.4", + "@cool-midway/core": "^6.0.6", "@cool-midway/file": "^6.0.1", "@cool-midway/iot": "^6.0.0", "@cool-midway/pay": "^6.0.0", diff --git a/packages/core/package.json b/packages/core/package.json index d5fd8a0..d7c20b7 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@cool-midway/core", - "version": "6.0.5", + "version": "6.0.6", "description": "", "main": "dist/index.js", "typings": "index.d.ts", diff --git a/packages/core/src/decorator/index.ts b/packages/core/src/decorator/index.ts index 05135f8..db51685 100644 --- a/packages/core/src/decorator/index.ts +++ b/packages/core/src/decorator/index.ts @@ -57,7 +57,7 @@ export class CoolDecorator { // 执行原始方法 data = await joinPoint.proceed(...joinPoint.args); await this.cacheManager.set(key, JSON.stringify(data), { - ttl: options.metadata.ttl, + ttl: options.metadata, }); } return data; diff --git a/packages/core/src/package.json b/packages/core/src/package.json index 106e770..1138796 100644 --- a/packages/core/src/package.json +++ b/packages/core/src/package.json @@ -1,6 +1,6 @@ { "name": "@cool-midway/core", - "version": "6.0.5", + "version": "6.0.6", "description": "", "main": "index.js", "typings": "index.d.ts",