CognxSafeTrack
Claude Sonnet 4.6
fix: batch scheduler updates, typed JWT user, log catch blocks, move script
2859b85 Download apps/api/scripts/delete-user.ts from safetrack/edtech: direct link, hf CLI and curl.
- Browser
- Download file 352 Bytes
-
https://huggingface.co/spaces/safetrack/edtech/resolve/main/apps/api/scripts/delete-user.ts
- Command line
-
hf download hf://spaces/safetrack/edtech/apps/api/scripts/delete-user.ts
-
curl -L -o delete-user.ts https://huggingface.co/spaces/safetrack/edtech/resolve/main/apps/api/scripts/delete-user.ts
352 Bytes
| import { PrismaClient } from '@prisma/client'; | |
| const prisma = new PrismaClient(); | |
| async function main() { | |
| console.log("Deleting user..."); | |
| const res = await prisma.user.deleteMany({ | |
| where: { phone: '221781476249' } | |
| }); | |
| console.log("Deleted count:", res.count); | |
| } | |
| main().catch(console.error).finally(() => prisma.$disconnect()); | |