Type 'number' has no properties in common with type 'Partial '
Создаю CRUD на nest.js использую @nestjs/sequelize sequelize sequelize-typescript postgres
котроллер:
@Put('/:id')
async update(@Param('id') id: number, @Body() data: UpdateGroupDto) {
return this.groupsService.update(id, data);
}
сервис:
async update(id: number, groupDto: UpdateGroupDto) {
return await this.groupRepository.update(id, groupDto);
}
Не удается сделать update в сервисе, подсвечивает update(id, с ошибкой -
TS2559: Type 'number' has no properties in common with type 'Partial '.
Многие попытки решить ничем не увенчались.
По остальным методам вопросов нет, все работает.