Migrating to v6 issues with optimize - Prisma