mirror of
https://github.com/SrIzan10/helium.git
synced 2026-06-06 00:56:58 +00:00
chore: cron
This commit is contained in:
@@ -3,7 +3,7 @@ import Redis from 'ioredis';
|
||||
|
||||
const IS_DEV = process.env.NODE_ENV === 'development';
|
||||
|
||||
export default defineCronHandler('everySecond', async () => {
|
||||
export default defineCronHandler(() => '*/5 * * * * *', async () => {
|
||||
const client = new Redis(process.env.REDIS_URL!);
|
||||
|
||||
const activePeers = await client.hgetall('peers');
|
||||
|
||||
Reference in New Issue
Block a user