Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Payee is not getting the user parameter #35

Open
ghost opened this issue Jul 22, 2020 · 3 comments
Open

Payee is not getting the user parameter #35

ghost opened this issue Jul 22, 2020 · 3 comments

Comments

@ghost
Copy link

ghost commented Jul 22, 2020

Payee is not getting the user parameter

This is my function

undoPoint(new PraiseCreated($praise, $this->task->user));

Even though I pass $this->task->user the helper function is getting the authed user, so the points are going to the authed user instead of target user.

I found it by dumping dd($this->getSubject()->user); in PraiseCreated Class

@ghost
Copy link
Author

ghost commented Jul 22, 2020

/cc @saqueib

@felix2056
Copy link

$this->task->user->undoPoint(new PraiseCreated($praise));

where is $this coming from? Are you calling from inside a model?

@saqueib
Copy link
Member

saqueib commented Aug 3, 2020

@ghost can you share PraiseCreated implementation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants