fix: nft page poap

This commit is contained in:
DIYgod
2023-01-13 13:47:14 +00:00
parent 948f39515a
commit 140a087fc0
5 changed files with 417 additions and 400 deletions
+4 -1
View File
@@ -18,7 +18,10 @@ export default async function handler(
const redis = getRedis()
const redisKey = `nfts/${query.address}`
const cache = await redis.get(redisKey)
let cache
try {
cache = await redis.get(redisKey)
} catch (error) {}
if (cache) {
res.status(200).json(JSON.parse(cache))
} else {