-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
* chore(notifications): boilerplate for linking email use case * chore(notifications): more boilerplate * chore(notifications): support list_after_id in UserNotificationsSettings * refactor(notifications): use GaloyUserId::search_begin() * refactor(notifications): expose created_at for UserNotificationSettings * chore(notifications): add EmailReminderProjection * chore(notifications): remove user_transaction_tracker * feat(notifictions): link email reminders * refactor(notifications): re-use handle_single_user_event * refactor(notifications): use kickoff_link_email_reminder to start reminders * refactor(notifications): more efficient notification update * refactor(notifications): add email_reminder_projection config * chore(notifications): link email reminder under security category * chore(notifications): use minutes in email reminder projection config * chore(notifications): update schemas --------- Co-authored-by: bodymindarts <justin@galoy.io> Co-authored-by: Sam Peters <unclesamtoshi@protonmail.com>
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
-- Add down migration script here |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
CREATE TABLE email_reminder_projection ( | ||
id UUID PRIMARY KEY DEFAULT gen_random_uuid(), | ||
galoy_user_id VARCHAR UNIQUE NOT NULL, | ||
user_first_seen_at TIMESTAMPTZ NOT NULL DEFAULT NOW(), | ||
last_transaction_at TIMESTAMPTZ, | ||
last_notified_at TIMESTAMPTZ | ||
); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,17 @@ | ||
use serde::{Deserialize, Serialize}; | ||
|
||
use crate::{email_executor::EmailExecutorConfig, push_executor::PushExecutorConfig}; | ||
use crate::{ | ||
email_executor::EmailExecutorConfig, email_reminder_projection::EmailReminderProjectionConfig, | ||
job::JobsConfig, push_executor::PushExecutorConfig, | ||
}; | ||
|
||
#[derive(Clone, Default, Serialize, Deserialize)] | ||
pub struct AppConfig { | ||
pub push_executor: PushExecutorConfig, | ||
#[serde(default)] | ||
pub email_executor: EmailExecutorConfig, | ||
#[serde(default)] | ||
pub jobs: JobsConfig, | ||
#[serde(default)] | ||
pub email_reminder_projection: EmailReminderProjectionConfig, | ||
} |