♻️ Export bot-engine code into its own package
This commit is contained in:
5
packages/bot-engine/queries/saveLogs.ts
Normal file
5
packages/bot-engine/queries/saveLogs.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import prisma from '@typebot.io/lib/prisma'
|
||||
import { Log } from '@typebot.io/schemas'
|
||||
|
||||
export const saveLogs = (logs: Omit<Log, 'id' | 'createdAt'>[]) =>
|
||||
prisma.log.createMany({ data: logs })
|
||||
Reference in New Issue
Block a user