mirror of
https://github.com/cool-team-official/cool-admin-midway.git
synced 2024-11-01 22:20:30 +08:00
修复方法缓存过期时间无效
This commit is contained in:
parent
c1d54feae0
commit
20be2d3257
@ -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",
|
||||
|
@ -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",
|
||||
|
@ -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;
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@cool-midway/core",
|
||||
"version": "6.0.5",
|
||||
"version": "6.0.6",
|
||||
"description": "",
|
||||
"main": "index.js",
|
||||
"typings": "index.d.ts",
|
||||
|
Loading…
Reference in New Issue
Block a user