fix: change @prisma/client to relative generated client
Some checks failed
Deploy to 110 WOOO Server / deploy (push) Failing after 7s
Some checks failed
Deploy to 110 WOOO Server / deploy (push) Failing after 7s
This commit is contained in:
@@ -29,12 +29,12 @@ async function main() {
|
||||
const openTasksRes = await fetch(`${API_BASE}/open-tasks`);
|
||||
const openTasks = await openTasksRes.json();
|
||||
|
||||
if (!openTasks || openTasks.length === 0) {
|
||||
if (!openTasks || !openTasks.tasks || openTasks.tasks.length === 0) {
|
||||
console.error("❌ No open tasks found. Run `scripts/seed_tasks.ts` first.");
|
||||
return;
|
||||
}
|
||||
|
||||
const targetTask = openTasks[0];
|
||||
const targetTask = openTasks.tasks[0];
|
||||
const targetTaskId = targetTask.id;
|
||||
console.log(`🎯 Found Task: "${targetTask.title}" (ID: ${targetTaskId})`);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user