♻️ Export bot-engine code into its own package
This commit is contained in:
8
packages/bot-engine/queries/deleteSession.ts
Normal file
8
packages/bot-engine/queries/deleteSession.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import prisma from '@typebot.io/lib/prisma'
|
||||
|
||||
export const deleteSession = (id: string) =>
|
||||
prisma.chatSession.deleteMany({
|
||||
where: {
|
||||
id,
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user