parents service corrected
This commit is contained in:
parent
d19a303ddc
commit
189d50bb32
@ -5,6 +5,7 @@ import { Parents } from 'src/entities/parents.entity';
|
||||
import { RoleType, Users } from 'src/entities/users.entity';
|
||||
import { DeepPartial, Repository } from 'typeorm';
|
||||
import { CreateParentDto } from '../user/dto/create_parent.dto';
|
||||
import { UpdateParentsDto } from '../user/dto/update_parent.dto';
|
||||
|
||||
@Injectable()
|
||||
export class ParentsService extends BaseService<Parents> {
|
||||
@ -57,7 +58,7 @@ export class ParentsService extends BaseService<Parents> {
|
||||
return parent;
|
||||
}
|
||||
|
||||
async update(id: string, dto: DeepPartial<Parents>): Promise<Parents> {
|
||||
async update(id: string, dto: UpdateParentsDto): Promise<Parents> {
|
||||
await this.parentsRepository.update(id, dto);
|
||||
return this.findOne(id);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user