fix(link): filter pass link in get all api

This commit is contained in:
Innei
2022-03-19 14:17:06 +08:00
parent 29a0301148
commit 9ae87c5059
4 changed files with 36 additions and 7 deletions

View File

@@ -93,4 +93,16 @@ export class AppController {
return
}
@Get('/clean_redis')
@HttpCache.disable
@Auth()
async cleanAllRedisKey() {
const redis = this.cacheService.getClient()
const keys: string[] = await redis.keys(getRedisKey('*'))
await Promise.all(keys.map((key) => redis.del(key)))
return
}
}