diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-07-09 18:47:34 +1000 |
---|---|---|
committer | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-07-09 18:47:34 +1000 |
commit | 7b59049a890472fcd4b99392b8b029288302d127 (patch) | |
tree | 5c9584b51a4508112fc3ed7c43123c03b9e3116a | |
parent | Test fix for that voice state error (diff) | |
parent | Add `promotional_email_opt_in` field to register to allow newer clients to ma... (diff) | |
download | server-7b59049a890472fcd4b99392b8b029288302d127.tar.xz |
Merge branch 'fix/registerNewClients' into slowcord
-rw-r--r-- | api/assets/schemas.json | 3 | ||||
-rw-r--r-- | api/src/routes/auth/register.ts | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/api/assets/schemas.json b/api/assets/schemas.json index 805e1535..773c9927 100644 --- a/api/assets/schemas.json +++ b/api/assets/schemas.json @@ -1106,6 +1106,9 @@ }, "captcha_key": { "type": "string" + }, + "promotional_email_opt_in": { + "type": "boolean" } }, "additionalProperties": false, diff --git a/api/src/routes/auth/register.ts b/api/src/routes/auth/register.ts index 94dd6502..126f3dbc 100644 --- a/api/src/routes/auth/register.ts +++ b/api/src/routes/auth/register.ts @@ -31,6 +31,8 @@ export interface RegisterSchema { date_of_birth?: Date; // "2000-04-03" gift_code_sku_id?: string; captcha_key?: string; + + promotional_email_opt_in?: boolean; } router.post("/", route({ body: "RegisterSchema" }), async (req: Request, res: Response) => { |