(id: string, updateCatDto: UpdateCatDto)
| 23 | } |
| 24 | |
| 25 | async update(id: string, updateCatDto: UpdateCatDto): Promise<Cat> { |
| 26 | return this.catModel |
| 27 | .findByIdAndUpdate({ _id: id }, updateCatDto, { new: true }) |
| 28 | .exec(); |
| 29 | } |
| 30 | |
| 31 | async delete(id: string): Promise<Cat> { |
| 32 | const deletedCat = await this.catModel |
no test coverage detected