({
name,
type,
projectId,
createdAt,
path,
}: IServiceCreateBotEventPayload)
| 777 | } |
| 778 | |
| 779 | export function createBotEvent({ |
| 780 | name, |
| 781 | type, |
| 782 | projectId, |
| 783 | createdAt, |
| 784 | path, |
| 785 | }: IServiceCreateBotEventPayload) { |
| 786 | return botBuffer.add({ |
| 787 | id: uuid(), |
| 788 | name, |
| 789 | type, |
| 790 | project_id: projectId, |
| 791 | path, |
| 792 | created_at: formatClickhouseDate(createdAt), |
| 793 | }); |
| 794 | } |
| 795 | |
| 796 | export function getConversionEventNames(projectId: string) { |
| 797 | return db.eventMeta.findMany({ |
no test coverage detected