Logo
Explore Help
Register Sign In
Malin/paste.es
1
0
Fork 0
You've already forked paste.es
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
4968cb04c31cd24379ee7f13ac8f98b27b6321fa
paste.es/api/jobs/index.ts

15 lines
437 B
TypeScript
Raw Normal View History

feat: rebrand Hemmelig to paste.es for cloudhost.es - Set Spanish as default language with ephemeral/encrypted privacy focus - Translate all user-facing strings and legal pages to Spanish - Replace Norwegian flag with Spanish flag in footer - Remove Hemmelig/terces.cloud links, add cloudhost.es sponsorship - Rewrite PrivacyPage: zero data collection, ephemeral design emphasis - Rewrite TermsPage: Spanish law, RGPD, paste.es/CloudHost.es references - Update PWA manifest, HTML meta tags, package.json branding - Rename webhook headers to X-Paste-Event / X-Paste-Signature - Update API docs title and contact to paste.es / cloudhost.es Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-24 09:30:19 +01:00
import { Cron } from 'croner';
import { deleteExpiredSecrets, deleteOrphanedFiles } from './expired';
// https://crontab.guru
export default function startJobs() {
// This function can be used to start any other jobs in the future
console.log('Job scheduler initialized.');
// Running every minute
new Cron('* * * * *', async () => {
await deleteExpiredSecrets();
await deleteOrphanedFiles();
});
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.4 Page: 42ms Template: 4ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API