I keep gettin this error
Type 'number' has no properties in common with type 'FindOneOptions<Teacher>'.
here;
const teacher = await this.teachersRepository.findOne(teacherId);
if (!teacher) {
throw new NotFoundException(`Teacher with ID ${teacherId} not found`);
}
UNDERSTAND the error
New contributor
Jose Alberto P. Rego is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.