修复方法缓存过期时间无效

This commit is contained in:
cool_team 2023-05-18 16:09:29 +08:00
parent c1d54feae0
commit 20be2d3257
4 changed files with 4 additions and 4 deletions

View File

@ -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",

View File

@ -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",

View File

@ -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;

View File

@ -1,6 +1,6 @@
{
"name": "@cool-midway/core",
"version": "6.0.5",
"version": "6.0.6",
"description": "",
"main": "index.js",
"typings": "index.d.ts",