You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.
When extending a user model, I tried calling the async afterFetch() function to add some relational information. I placed a debugger hoping it would hit when I fetch a single model via findOne however it does not hit.
My workaround for this was to create a separate function
async addBasicInfo() {
...
}
then calling that function after the fetch is completed
When extending a user model, I tried calling the
async afterFetch()
function to add some relational information. I placed a debugger hoping it would hit when I fetch a single model viafindOne
however it does not hit.My workaround for this was to create a separate function
then calling that function after the fetch is completed
It would be nice if i could keep all the logic contained in the model itself as opposed to calling it on the user instance. Thoughts?
The text was updated successfully, but these errors were encountered: