Open scott-wyatt opened 6 years ago
The auditing middleware needs to be the first middleware defined in your router to ensure it gets executed before any other middleware can halt command dispatch.
Probably worth doing either or both of the following:
success/1
and failure/1
fuctions to ensure the audit middleware has been initialised (and log an error to warn users to define auditing middleware first)Happy to accept a PR to help fix the issue.
Error
To Reproduce
Add commanded-audit-middleware to Conduit, and then run
mix test
.Suggested Solution
Pattern Matching for delta
for when a delta does not yet have a start_time and error is already thrown.