Files
Momento/mcp-server/delete-notes.js
Sepehr Ramezani cff36d9619 fix: MCP server Docker deployment, healthchecks, and minor fixes
MCP server:
- Fix Prisma imports from stale client-generated path to @prisma/client
- Switch schema from SQLite to PostgreSQL for Docker compatibility
- Add prisma generate step to Dockerfile with proper binaryTargets
- Include index-sse.js in Docker build (was excluded by .dockerignore)
- Install openssl and libc6-compat in Alpine image for Prisma runtime

Docker:
- Fix memento-note healthcheck (wget unavailable in bullseye-slim)

Minor fixes:
- scrape.service SSRF protection, middleware route coverage
- canvas-board and note-input type fixes
- next.config turbopack and devIndicators adjustments

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-04-21 22:22:02 +02:00

40 lines
872 B
JavaScript

#!/usr/bin/env node
/**
* Supprimer toutes les notes créées
*/
import { PrismaClient } from '@prisma/client';
const prisma = new PrismaClient({
datasources: {
db: { url: 'file:/Users/sepehr/dev/Keep/memento-note/prisma/dev.db' },
},
});
async function deleteNotes() {
console.log('🗑️ Suppression des notes créées...\n');
// Trouver le notebook "Documentation"
const notebook = await prisma.notebook.findFirst({
where: { name: 'Documentation' },
});
if (!notebook) {
console.log('❌ Notebook "Documentation" non trouvé');
return;
}
// Supprimer toutes les notes de ce notebook
const result = await prisma.note.deleteMany({
where: {
notebookId: notebook.id,
},
});
console.log(`${result.count} notes supprimées`);
}
deleteNotes()
.catch(console.error)
.finally(() => prisma.$disconnect());