calcom/pages/api
Omar López 7bc7b241ac
Zomars/cal 794 normalize emails in db (#1361)
* Email input UX improvements

* Makes email queries case insensitive

* Lowercases all emails

* Type fixes

* Re adds lowercase email to login

* Removes citext dependency

* Updates schema

* Migration fixes

* Added failsafes to team invites

* Team invite improvements

* Deleting the index, lowercasing 

```
calendso=> UPDATE users SET email=LOWER(email);
ERROR:  duplicate key value violates unique constraint "users.email_unique"
DETAIL:  Key (email)=(free@example.com) already exists.
```

vs.

```
calendso=> CREATE UNIQUE INDEX "users.email_unique" ON "users" (email);
ERROR:  could not create unique index "users.email_unique"
DETAIL:  Key (email)=(Free@example.com) is duplicated.
```

I think it'll be easier to rectify for users if they try to run the migrations if the index stays in place.

Co-authored-by: Alex van Andel <me@alexvanandel.com>
2021-12-21 00:59:06 +00:00
..
auth Zomars/cal 794 normalize emails in db (#1361) 2021-12-21 00:59:06 +00:00
availability Allows setting the event frequency to other than event length (#1349) 2021-12-19 12:11:31 +00:00
book Zomars/cal 748 paid bookings are failing (#1335) 2021-12-17 16:58:23 +00:00
cron Zomars/cal 794 normalize emails in db (#1361) 2021-12-21 00:59:06 +00:00
event-type Suggestion: let prettier sort imports order (#673) 2021-09-22 13:52:38 -06:00
integrations Fixes zoom expiry date (#1315) 2021-12-15 14:02:39 +00:00
schedule Fixed #1015 - Teams user registration is broken (#1090) 2021-11-11 05:44:53 +00:00
teams/[team] Zomars/cal 794 normalize emails in db (#1361) 2021-12-21 00:59:06 +00:00
trpc Zomars/fixes trpc typo (#957) 2021-10-14 19:22:01 +00:00
user Improvement/teams (#1285) 2021-12-09 23:51:30 +00:00
cancel.ts Emails Revamp (#1201) 2021-11-26 11:03:43 +00:00
eventType.ts Revert "Revert "Feature/cal 274 add webhooks (#628)" (#854)" (#876) 2021-10-07 15:14:47 +00:00
integrations.ts Fixes integrations api endpoint (#1066) 2021-10-28 22:30:42 +01:00
me.ts Suggestion: let prettier sort imports order (#673) 2021-09-22 13:52:38 -06:00
teams.ts Improvement/teams (#1285) 2021-12-09 23:51:30 +00:00