import { prisma } from '../src/lib/prisma.js'

async function main() {
  const { count } = await prisma.galleryImage.updateMany({
    where: { isResized: false },
    data: { isResized: true },
  })
  console.info(`Marked ${count} existing images as resized`)
}

main()
  .catch(console.error)
  .finally(() => prisma.$disconnect())
