#!/usr/bin/env node require('dotenv').config(); const mongoose = require('mongoose'); async function checkArticles() { await mongoose.connect(process.env.MONGODB_URI || 'mongodb://localhost:27017/tractatus_dev'); const BlogPost = mongoose.connection.db.collection('blogposts'); const articles = await BlogPost.find({ status: 'pending_review' }).toArray(); console.log('\n=== PENDING REVIEW ARTICLES ===\n'); articles.forEach((article, i) => { console.log(`${i + 1}. ${article.title}`); console.log(` ID: ${article._id}`); console.log(` Created: ${article.createdAt}`); console.log(` Target: ${article.targetPublication || 'None'}\n`); }); await mongoose.connection.close(); } checkArticles();