🔊 Add prisma metrics to prometheus endpoint (#1420)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import prisma from '@typebot.io/lib/prisma'
|
||||
import { Prisma } from '@typebot.io/prisma'
|
||||
import { SessionState } from '@typebot.io/schemas'
|
||||
|
||||
type Props = {
|
||||
@@ -6,7 +7,10 @@ type Props = {
|
||||
state: SessionState
|
||||
}
|
||||
|
||||
export const createSession = async ({ id, state }: Props) =>
|
||||
export const createSession = ({
|
||||
id,
|
||||
state,
|
||||
}: Props): Prisma.PrismaPromise<any> =>
|
||||
prisma.chatSession.create({
|
||||
data: {
|
||||
id,
|
||||
|
||||
Reference in New Issue
Block a user