Skip to main content

generic_email_template_exists

Function generic_email_template_exists 

Source
pub async fn generic_email_template_exists(
    conn: &mut PgConnection,
    template_type: EmailTemplateType,
) -> ModelResult<bool>
Expand description

Whether a generic template of this type would actually be found: checks only the "en" and NULL language rows, the two the lookup above always falls back to regardless of the caller’s UI language.