mirror of
https://github.com/NohamR/lanyard-profile-readme.git
synced 2026-05-26 04:17:19 +00:00
feat: migrate to the new system.
This commit is contained in:
9
src/utils/actions.ts
Normal file
9
src/utils/actions.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
"use server";
|
||||
import redis from "@/utils/redis";
|
||||
|
||||
export async function getUserCount() {
|
||||
let users = await redis.hgetall("users");
|
||||
let count = Object.keys(users);
|
||||
|
||||
return count.length;
|
||||
}
|
||||
Reference in New Issue
Block a user