Below is a screenshot displaying an error: https://i.stack.imgur.com/VYzT1.png
The code for the usersinterface is as follows:
export class Usersinterface {
readonly username: string;
readonly password: string;
}
Next, here is the code for userservices:
import { Injectable, Inject, BadRequestException } from '@nestjs/common';
import {Usersdto} from './users.dto'
import {Usersinterface} from './users.interface'
import { Model } from 'mongoose';
import * as bcrypt from 'bcrypt';
import { InjectModel } from '@nestjs/mongoose';
@Injectable()
export class UsersService {
private hashLength = 16;
constructor(@Inject('Usersinterface') private readonly userModel: Model<Usersinterface>) {}
}