const metadata = {
  queue: "integration-log-pruner",
  id: "integrations:log-pruner",
  concurrency: 1
};
async function handle(job, ctx) {
  const logService = ctx.resolve("integrationLogService");
  const pruned = await logService.pruneOlderThan(job.payload.retentionDays, job.payload.scope);
  if (pruned > 0) {
    const logger = logService.scoped("integrations", job.payload.scope);
    await logger.info(`Pruned ${pruned} log entries older than ${job.payload.retentionDays} days`);
  }
}
export {
  handle as default,
  metadata
};
//# sourceMappingURL=log-pruner.js.map
