Skip to content

Instantly share code, notes, and snippets.

@felipeelias
Last active April 20, 2023 09:50
Show Gist options
  • Save felipeelias/10796e6bef80782e9f2c83c03e3e8ac0 to your computer and use it in GitHub Desktop.
Save felipeelias/10796e6bef80782e9f2c83c03e3e8ac0 to your computer and use it in GitHub Desktop.
const SegfaultHandler = require('segfault-handler');
SegfaultHandler.registerHandler('crash.log');
const { PrismaClient } = require('@prisma/client');
async function main() {
const prisma = new PrismaClient();
const { id } = await prisma.notification.create({ data: { to: "test@example.com" } });
console.log(id)
}
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment