feature(dashboard): add integrations and notifications
This commit is contained in:
@@ -6,6 +6,7 @@ import { getTime } from '@openpanel/common';
|
||||
import {
|
||||
type IServiceEvent,
|
||||
TABLE_NAMES,
|
||||
checkNotificationRulesForSessionEnd,
|
||||
createEvent,
|
||||
eventBuffer,
|
||||
getEvents,
|
||||
@@ -138,6 +139,8 @@ export async function createSessionEnd(
|
||||
throw new Error('No last event found');
|
||||
}
|
||||
|
||||
await checkNotificationRulesForSessionEnd(events);
|
||||
|
||||
return createEvent({
|
||||
...sessionStart,
|
||||
properties: {
|
||||
|
||||
Reference in New Issue
Block a user