Open jwoertink opened 2 years ago
This is caused from this line
When we call insert, we use a RETURNING statement which should return a record, but I think if the insert fails, then nothing is returned, and we basically call [].first
which raises this error. One option could be to rescue this error and re-raise a Avram::RecordInsertError
or something...
Chances are, update has the same issue:
I'm not sure if this is an actual bug, or just a bad error, but this error happens if you pass in params to an operation and there's no permitted keys.
Will need to track down where this is happening.