mirror of
https://github.com/soconnor0919/hristudio.git
synced 2026-03-23 19:27:51 -04:00
25 lines
734 B
TypeScript
25 lines
734 B
TypeScript
|
|
import { db } from "../../src/server/db";
|
|
import { steps } from "../../src/server/db/schema";
|
|
import { eq, like } from "drizzle-orm";
|
|
|
|
async function checkSteps() {
|
|
const allSteps = await db.select().from(steps).where(like(steps.name, "%Comprehension Check%"));
|
|
|
|
console.log("Found steps:", allSteps.length);
|
|
|
|
for (const step of allSteps) {
|
|
console.log("Step Name:", step.name);
|
|
console.log("Type:", step.type);
|
|
console.log("Conditions (typeof):", typeof step.conditions);
|
|
console.log("Conditions (value):", JSON.stringify(step.conditions, null, 2));
|
|
}
|
|
}
|
|
|
|
checkSteps()
|
|
.then(() => process.exit(0))
|
|
.catch((err) => {
|
|
console.error(err);
|
|
process.exit(1);
|
|
});
|