Hotfix/fix legacy user eventtypes (#3116)

* includedDates would always disable excludedDates due to empty array

* Added migration to add all userids into _user_eventtype

Co-authored-by: Omar López <zomars@me.com>
This commit is contained in:
Alex van Andel
2022-06-20 20:21:17 +00:00
committed by GitHub
co-authored by Omar López
parent 591309f335
commit 1b81e6d8ec
@@ -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;