Skip to content

Commit 9dcd208

Browse files
committed
chore(db): sync subscribers types with db schema
1 parent ca505eb commit 9dcd208

File tree

3 files changed

+0
-20
lines changed

3 files changed

+0
-20
lines changed

src/app/(proper_react)/(redesign)/(authenticated)/user/(dashboard)/settings/stories/settingsMockData.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,6 @@ export const mockedSubscriber: SubscriberRow = {
9595
breaches_resolved: null,
9696
breach_stats: null,
9797
breach_resolution: null,
98-
monthly_email_at: "2022-08-07 14:22:00.000-05",
99-
monthly_email_optout: false,
10098
signup_language: "fr-CH, fr;q=0.9, en;q=0.8, de;q=0.7,*;q=0.5",
10199
onerep_profile_id: null,
102100
monthly_monitor_report_at: null,

src/knex-tables.d.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,6 @@ declare module "knex/types/tables" {
148148
};
149149
monitoredEmails: { count: number };
150150
};
151-
monthly_email_at: ISO8601DateString;
152-
monthly_email_optout: boolean;
153151
monthly_monitor_report_at: null | Date;
154152
monthly_monitor_report: boolean;
155153
breach_resolution: BreachResolution;
@@ -173,8 +171,6 @@ declare module "knex/types/tables" {
173171
| "breaches_resolved"
174172
| "waitlists_joined"
175173
| "breach_stats"
176-
| "monthly_email_at"
177-
| "monthly_email_optout"
178174
| "monthly_monitor_report_at"
179175
| "monthly_monitor_report"
180176
| "breach_resolution"

src/utils/subscriberBreaches.test.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,6 @@ const subscriber: SubscriberRow = {
9393
},
9494
},
9595
},
96-
monthly_email_at: "2022-08-07 14:22:00.000-05",
97-
monthly_email_optout: false,
9896
signup_language: "fr-CH, fr;q=0.9, en;q=0.8, de;q=0.7,*;q=0.5",
9997
onerep_profile_id: null,
10098
monthly_monitor_report_at: null,
@@ -543,8 +541,6 @@ describe("getSubBreaches", () => {
543541
},
544542
},
545543
},
546-
monthly_email_at: "2022-08-07 14:22:00.000-05",
547-
monthly_email_optout: false,
548544
signup_language: "fr-CH, fr;q=0.9, en;q=0.8, de;q=0.7,*;q=0.5",
549545
monthly_monitor_report_at: null,
550546
monthly_monitor_report: false,
@@ -643,8 +639,6 @@ describe("getSubBreaches", () => {
643639
},
644640
},
645641
},
646-
monthly_email_at: "2022-08-07 14:22:00.000-05",
647-
monthly_email_optout: false,
648642
signup_language: "fr-CH, fr;q=0.9, en;q=0.8, de;q=0.7,*;q=0.5",
649643
monthly_monitor_report_at: null,
650644
monthly_monitor_report: false,
@@ -751,8 +745,6 @@ describe("getSubBreaches", () => {
751745
},
752746
},
753747
},
754-
monthly_email_at: "2022-08-07 14:22:00.000-05",
755-
monthly_email_optout: false,
756748
signup_language: "fr-CH, fr;q=0.9, en;q=0.8, de;q=0.7,*;q=0.5",
757749
monthly_monitor_report_at: null,
758750
monthly_monitor_report: false,
@@ -869,8 +861,6 @@ describe("getSubBreaches", () => {
869861
},
870862
},
871863
},
872-
monthly_email_at: "2022-08-07 14:22:00.000-05",
873-
monthly_email_optout: false,
874864
signup_language: "fr-CH, fr;q=0.9, en;q=0.8, de;q=0.7,*;q=0.5",
875865
monthly_monitor_report_at: null,
876866
monthly_monitor_report: false,
@@ -987,8 +977,6 @@ describe("getSubBreaches", () => {
987977
},
988978
},
989979
},
990-
monthly_email_at: "2022-08-07 14:22:00.000-05",
991-
monthly_email_optout: false,
992980
signup_language: "fr-CH, fr;q=0.9, en;q=0.8, de;q=0.7,*;q=0.5",
993981
monthly_monitor_report_at: null,
994982
monthly_monitor_report: false,
@@ -1101,8 +1089,6 @@ describe("getSubBreaches", () => {
11011089
},
11021090
},
11031091
},
1104-
monthly_email_at: "2022-08-07 14:22:00.000-05",
1105-
monthly_email_optout: false,
11061092
signup_language: "fr-CH, fr;q=0.9, en;q=0.8, de;q=0.7,*;q=0.5",
11071093
monthly_monitor_report_at: null,
11081094
monthly_monitor_report: false,

0 commit comments

Comments
 (0)