2022-05-05 09:32:14 +02:00
|
|
|
import { Event } from "@budibase/types"
|
2022-05-10 11:33:59 +02:00
|
|
|
import { processors } from "./processors"
|
2022-04-01 22:29:44 +02:00
|
|
|
|
2022-05-10 11:33:59 +02:00
|
|
|
export const publishEvent = (event: Event, properties: any) => {
|
|
|
|
// in future this should use async events
|
|
|
|
// via a queue. For now we can use sync as
|
|
|
|
// this is non-blocking
|
|
|
|
processors.processEvent(event, properties)
|
2022-04-01 22:29:44 +02:00
|
|
|
}
|