Skip to content

Commit

Permalink
Hotfix/fix legacy user eventtypes (calcom#3116)
Browse files Browse the repository at this point in the history
* includedDates would always disable excludedDates due to empty array

* Added migration to add all userids into _user_eventtype

Co-authored-by: Omar López <[email protected]>
  • Loading branch information
emrysal and zomars authored Jun 20, 2022
1 parent 591309f commit 1b81e6d
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
INSERT INTO _user_eventtype ("A", "B")
SELECT id, "userId" from "EventType"
LEFT JOIN _user_eventtype on ("A" = "EventType".id)
WHERE "A" IS NULL and "userId" IS NOT NULL;

0 comments on commit 1b81e6d

Please sign in to comment.