test(notify): prefs gate email/push on reminder and waitlist.
Assert email=false skips SMTP; push=true hits web_push_deliver. Refs EventHub/EventHubBack#75
This commit is contained in:
@@ -96,6 +96,7 @@ ensure_indexes(Tables) when is_list(Tables) ->
|
||||
{verification, [user_id]},
|
||||
{password_reset, [user_id]},
|
||||
{notification, [user_id, is_read]},
|
||||
{push_subscription, [user_id, endpoint]},
|
||||
{auth_session, [family_id, subject_id]},
|
||||
{report, [resolved_by]},
|
||||
{ticket, [assigned_to]}
|
||||
@@ -179,6 +180,8 @@ table_opts(admin_audit) ->
|
||||
[{ram_copies, [node()]}, {attributes, record_info(fields, admin_audit)}];
|
||||
table_opts(notification) ->
|
||||
[{ram_copies, [node()]}, {attributes, record_info(fields, notification)}];
|
||||
table_opts(push_subscription) ->
|
||||
[{ram_copies, [node()]}, {attributes, record_info(fields, push_subscription)}];
|
||||
table_opts(stats_counter) ->
|
||||
[{ram_copies, [node()]}, {attributes, record_info(fields, stats_counter)}];
|
||||
table_opts(stats_daily) ->
|
||||
|
||||
Reference in New Issue
Block a user