interface EmailHooksService {
    listForDispatch(
        modelName: constants.models.ModelName,
        eventName: EventName,
    ): Promise<SavedEmailHook[]>;
    recordExecution(hookId: string, modelId: string): Promise<void>;
}

Hierarchy

  • BaseHooksService<SavedEmailHook>
    • EmailHooksService

Methods

  • Record the execution of a hook in the database

    Parameters

    • hookId: string

      The ID of the hook

    • modelId: string

      The ID of the model that triggered the hook

    Returns Promise<void>