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
import{User}from'@models';// working aliased pathimport{Injectable}from'@nestjs/common';import{ReturnModelType}from'@typegoose/typegoose';import{InjectModel}from'nestjs-typegoose';// all imports are correct
@Injectable()exportclassAuthService{constructor(
@InjectModel(User)privatereadonlyuserModel: ReturnModelType<typeofUser>){}}
userModel is always of type any. Any ideas what could be wrong?
The text was updated successfully, but these errors were encountered:
userModel
is always of typeany
. Any ideas what could be wrong?The text was updated successfully, but these errors were encountered: