Hotfix/6.0.2 (#94)

* hotfix/6.0.2 fix issue where events could not have an ID
* hotfix/6.0.2 version bump
* hotfix/6.0.2 testing
This commit is contained in:
Carlos Valente
2022-01-14 22:11:33 +01:00
committed by GitHub
parent acb5d8ae08
commit 79a24a134e
6 changed files with 41 additions and 37 deletions
+1 -4
View File
@@ -94,10 +94,7 @@ export const eventsPost = async (req, res) => {
// ensure structure
let newEvent = {};
let id = req.body.id;
if (data.events.find((e) => e.id === id)) {
id = generateId();
}
const id = generateId();
switch (req.body.type) {
case 'event':