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

Update user.model.ts #39

Closed d-sooter closed 4 years ago

d-sooter commented 4 years ago

I encountered an issue creating a new user when trying to save the credentials. It kept telling me that the field 'user_id' does not exit on the model. I found out that the problem hast do do with the fact that the 'keyTo' was referencing the wrong field after changing it to 'userId' it worked just fine.

Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

Fixes #39 33

Type of change

Please delete options that are not relevant.

How Has This Been Tested ?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

Checklist :