How get ctx in helpers #1504
Answered
by
McSneaky
devalexandre
asked this question in
Help
-
I try get auth in helper using async getProgress(grouper_id,{auth}){
const { id } = auth.user
return await _Progress.query()
.where('grouper_id',grouper_id)
.where('user_id',id)
.first()
} but don`t work |
Beta Was this translation helpful? Give feedback.
Answered by
McSneaky
Aug 23, 2020
Replies: 1 comment
-
You need to pass it to helper method |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
devalexandre
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You need to pass it to helper method