87 string splitting by separator, not whitespace

This commit is contained in:
survellow
2023-12-03 14:41:30 +01:00
parent a991e56115
commit ed99568fb1
7 changed files with 82 additions and 33 deletions

View File

@@ -31,7 +31,7 @@ export async function fetchEventsByRoomAndDuration(
})
.catch((error) => {
console.log("Error fetching events: ", error);
return null;
return Promise.reject(error);
});
console.log("occupations: ", events);
return events;