feature(public,docs): new public website and docs

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-11-13 21:15:46 +01:00
parent fc2a019e1d
commit a022cb4831
234 changed files with 9341 additions and 6154 deletions

View File

@@ -5,7 +5,7 @@ import { omit } from 'ramda';
import { createSessionEnd, getSessionEnd } from '@/utils/session-handler';
import { isSameDomain, parsePath } from '@openpanel/common';
import { parseUserAgent } from '@openpanel/common/server';
import type { IServiceCreateEventPayload } from '@openpanel/db';
import type { IServiceCreateEventPayload, IServiceEvent } from '@openpanel/db';
import { checkNotificationRulesForEvent, createEvent } from '@openpanel/db';
import { getLastScreenViewFromProfileId } from '@openpanel/db';
import type { EventsQueuePayloadIncomingEvent } from '@openpanel/queue';
@@ -104,7 +104,7 @@ export async function incomingEvent(job: Job<EventsQueuePayloadIncomingEvent>) {
: null;
const payload = merge(omit(['properties'], event ?? {}), baseEvent);
return createEventAndNotify(payload);
return createEventAndNotify(payload as IServiceEvent);
}
const sessionEnd = await getSessionEnd({