mirror of
https://github.com/aljazceru/ditto.git
synced 2026-01-13 10:34:19 +01:00
13 lines
670 B
TypeScript
13 lines
670 B
TypeScript
import { updateTrendingLinks } from '@/trends.ts';
|
|
import { updateTrendingHashtags } from '@/trends.ts';
|
|
import { updateTrendingEvents, updateTrendingPubkeys, updateTrendingZappedEvents } from '@/trends.ts';
|
|
|
|
/** Start cron jobs for the application. */
|
|
export function cron() {
|
|
Deno.cron('update trending pubkeys', '0 * * * *', updateTrendingPubkeys);
|
|
Deno.cron('update trending zapped events', '7 * * * *', updateTrendingZappedEvents);
|
|
Deno.cron('update trending events', '15 * * * *', updateTrendingEvents);
|
|
Deno.cron('update trending hashtags', '30 * * * *', updateTrendingHashtags);
|
|
Deno.cron('update trending links', '45 * * * *', updateTrendingLinks);
|
|
}
|