Documentation
¶
Overview ¶
Package liveuse finds the live work that uses a row a removal is about to take away (ADR 0049), for the modules that cannot import internal/automations (it reaches them through outbound). It is a leaf over ent: each answer is the users to name in an *inuse.Error.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EmailAutomations ¶
func EmailAutomations(ctx context.Context, s *ent.Scoped, where ...predicate.Automation) ([]inuse.User, error)
EmailAutomations returns the active, unarchived Automations whose current steps send an email, as users. Such an Automation sends through the Integration it names (the Workspace's default email Integration when it names none) with its configured From, so that Integration and the Sending domain of that From are in use by it. The where predicates narrow the Automations further, for a caller that asks about one Integration.
Types ¶
This section is empty.