Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

293 B
Raw Blame
import { lt } from 'drizzle-orm';

import { db, publicCatalogCache } from './schema';

// System maintenance of shared public catalog cache; no user-owned data.
export const purgeExpiredCache = async (now: Date) =>
  db.delete(publicCatalogCache).where(lt(publicCatalogCache.expiresAt, now));