mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-11 10:23:54 +00:00
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:
@@ -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':
|
||||
|
||||
Reference in New Issue
Block a user