diff --git a/src/app.ts b/src/app.ts index 29efbc96..5ac26360 100644 --- a/src/app.ts +++ b/src/app.ts @@ -1,5 +1,5 @@ import { Conf } from '@/config.ts'; -// import '@/cron.ts'; +import '@/cron.ts'; import { type User } from '@/db/users.ts'; import { type Context, diff --git a/src/cron.ts b/src/cron.ts index b29ab19b..487c918d 100644 --- a/src/cron.ts +++ b/src/cron.ts @@ -38,8 +38,5 @@ async function cleanupMedia() { console.log(`Removed ${media?.length ?? 0} orphaned media files.`); } -await cleanupEvents(); -await cleanupMedia(); - cron.every15Minute(cleanupEvents); cron.every15Minute(cleanupMedia); diff --git a/src/deps.ts b/src/deps.ts index 02a7d502..79916b87 100644 --- a/src/deps.ts +++ b/src/deps.ts @@ -79,7 +79,7 @@ export { Machina } from 'https://gitlab.com/soapbox-pub/nostr-machina/-/raw/08a1 export * as Sentry from 'https://deno.land/x/sentry@7.78.0/index.js'; export { sentry as sentryMiddleware } from 'npm:@hono/sentry@^1.0.0'; export * as Comlink from 'npm:comlink@^4.4.1'; -export { Pool, spawn } from 'npm:threads@^1.7.0'; -export { expose } from 'npm:threads@^1.7.0/worker'; +export { Pool, spawn } from 'npm:@soapbox.pub/threads@^1.7.5'; +export { expose } from 'npm:@soapbox.pub/threads@^1.7.5/worker'; export type * as TypeFest from 'npm:type-fest@^4.3.0';