mirror of
https://github.com/NohamR/lanyard-profile-readme.git
synced 2026-05-25 20:00:40 +00:00
add redis again
This commit is contained in:
@@ -1,12 +1,9 @@
|
||||
import type { NextApiRequest, NextApiResponse } from "next";
|
||||
// import redis from "../../src/redis";
|
||||
import redis from "../../src/redis";
|
||||
|
||||
export default async function handler(req: NextApiRequest, res: NextApiResponse) {
|
||||
// let users = await redis.hgetall("users");
|
||||
// let count = Object.keys(users);
|
||||
let users = await redis.hgetall("users");
|
||||
let count = Object.keys(users);
|
||||
|
||||
// redis.disconnect();
|
||||
|
||||
// res.status(200).send({ count: count.length });
|
||||
res.status(200).send({ count: 971 });
|
||||
res.status(200).send({ count: count.length });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user