Hi there all
Just dipping my toes into KeystoneJS, I've followed the tutorial and am trying to add data into the database through a simple webform.
Error thrown for request: /add-event
TypeError: Event is not a constructor
The line it errors on is
var newEvent = new Event();
Event.updateItem(newEvent, req.body);
in routes/api/event/post.js
The database is then not populated.
Seems to potentially be an issue in the above file or models/Event.js? Trying to debug, but not sure where to start...
Thanks