1
0
Fork 0
mirror of synced 2024-06-15 17:05:11 +12:00
budibase/packages/backend-core/src/events/publishers/email.ts
2022-05-31 21:04:41 +01:00

13 lines
439 B
TypeScript

import { publishEvent } from "../events"
import { Event, SMTPCreatedEvent, SMTPUpdatedEvent } from "@budibase/types"
export async function SMTPCreated(timestamp?: string | number) {
const properties: SMTPCreatedEvent = {}
await publishEvent(Event.EMAIL_SMTP_CREATED, properties, timestamp)
}
export async function SMTPUpdated() {
const properties: SMTPUpdatedEvent = {}
await publishEvent(Event.EMAIL_SMTP_UPDATED, properties)
}