import { CustomerUserSession } from "@open-mercato/core/modules/customer_accounts/data/entities";
const metadata = {
  queue: "customer-accounts-cleanup-sessions",
  id: "customer_accounts:cleanup-expired-sessions",
  concurrency: 1
};
async function handle(job, ctx) {
  const em = ctx.resolve("em");
  const deleted = await em.nativeDelete(CustomerUserSession, {
    $or: [
      { expiresAt: { $lt: /* @__PURE__ */ new Date() } },
      { deletedAt: { $ne: null } }
    ]
  });
  if (typeof deleted === "number" && deleted > 0) {
  }
}
export {
  handle as default,
  metadata
};
//# sourceMappingURL=cleanupExpiredSessions.js.map
