Join Discord
Powered by
How can i add prismaService to this initFunction, ...
# support-questions-legacy
d
damian_w
11/21/2022, 3:56 PM
How can i add prismaService to this initFunction, i try to add this service to constructor, but this solution not working :/
r
rp_st
11/21/2022, 4:32 PM
What’s the error you are getting?
rp_st
11/21/2022, 4:34 PM
The context of “this” is different in the signUp function
rp_st
11/21/2022, 4:35 PM
Instead, copy over this.PrismaService to a variable at the start of the Constructor and then use that variable instead
2
Views
Previous
Next