Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add optional reminderCreatedAt field #22

Merged
merged 1 commit into from
Feb 15, 2021
Merged

Conversation

tompretty
Copy link
Contributor

@tompretty tompretty commented Feb 15, 2021

What does this change?

Adding this field will allow us to backfill current pending reminders created on the old architecture.

Additionally, I've refactored OneOffSignupRequest and RecurringSignupRequest to use a type union instead of extending a base type. This is because typecheck.macro doesn't support extending types (it wasn't actually validating any of the fields defined in the base type) (vedantroy/typecheck.macro#2)

@tompretty tompretty changed the title Add optional reminderCreatedAt field Add optional reminderCreatedAt field Feb 15, 2021
export interface OneOffSignupRequest extends BaseSignupRequest {
reminderPeriod: ReminderPeriod;
}
// typecheck.macro doesn't support extends
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😱 well spotted!

Copy link
Member

@tomrf1 tomrf1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@tompretty tompretty merged commit e581dcc into main Feb 15, 2021
@tompretty tompretty deleted the tp-add-reminder-created-at branch February 15, 2021 09:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants