sourcefuse / loopback4-starter

Loopback 4 starter application. Multi-tenant architecture supported. Authentication, Authorization, Soft deletes, environment vars, Audit logs, included.
MIT License
158 stars 59 forks source link

Audit-log model bug #5

Closed mayank-SFIN571 closed 5 years ago

mayank-SFIN571 commented 5 years ago

Describe the bug Error while fetching user data.

To Reproduce Steps to reproduce the behavior:

  1. Create a '/me' api which returns user data.
  2. This should break the application giving an error

Screenshots starter_bug

vikramkh commented 5 years ago

Did you set your redis database = 0?

mayank-SFIN571 commented 5 years ago

Yes, i did. The redis part is working fine (I am not sure why this warning appears).

mayank-SFIN571 commented 5 years ago

Actually the error is in audit-log model. A field that should be named 'operation_time' is specified as 'operation_type'. Doing this small change will solve the issue. But this particular action does not create audit, so why is this even hitting a query in this 'audit_log' table?

samarpan-b commented 5 years ago

Fixed the issue in above PR. Please update your cloned environments accordingly.