Hi I'm having issue with getting logged in user auth data to store creator user id while saving the record, its working fine when I save in db with normal api requests but when adding task to queue it is not able to get user data while saving to db, is there some dependancy I'm missing? or how can I fix it?
Attaching my code
I tried accessing contextService directly but that is also failing, not sure how to access user in entity directly.
Why would the job, which is not tied to the request in any way, have information about who kicked it off if you didn't add that data to the job in the first place?
Those jobs that bull runs are asynchronous and the request does not tie to it at all. Add the user to the job data, like how you set up the
shipment, and you should have the user available