ex_audit icon indicating copy to clipboard operation
ex_audit copied to clipboard

Getting error when using ExAudit.Repo

Open tiagodavi-papa opened this issue 5 years ago • 3 comments
trafficstars

Hy Guys. Thank you for the library.

I put this clause into my code: use ExAudit.Repo

After compiling I get this error: key :otp_app not found in: []

Does anyone know what's happening?

tiagodavi-papa avatar Jul 10 '20 17:07 tiagodavi-papa

I found out the problem. The docs here on github is outdated. On hex is saying this: "You have to hook ExAudit to your repo, by replacing Ecto.Repo with ExAudit.Repo:", but here on Github looked like I had to use ExAudit below my calling to Ecto.Repo.

tiagodavi-papa avatar Jul 10 '20 17:07 tiagodavi-papa

If this is a documentation issue, it can stay open until it's fixed :)

narrowtux avatar Jul 11 '20 21:07 narrowtux