diff --git a/package-lock.json b/package-lock.json index 5cb1e963ea..cee849bcbd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11408,9 +11408,9 @@ "dev": true }, "typescript": { - "version": "2.6.2", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-2.6.2.tgz", - "integrity": "sha1-PFtv1/beCRQmkCfwPAlGdY92c6Q=", + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-2.8.1.tgz", + "integrity": "sha512-Ao/f6d/4EPLq0YwzsQz8iXflezpTkQzqAyenTiw4kCUGr1uPiFLC3+fZ+gMZz6eeI/qdRUqvC+HxIJzUAzEFdg==", "dev": true }, "uglify-js": { diff --git a/src/app/homepage/pages/techniques/mongo/mongo.component.ts b/src/app/homepage/pages/techniques/mongo/mongo.component.ts index 636481bb26..0c739c9d5a 100644 --- a/src/app/homepage/pages/techniques/mongo/mongo.component.ts +++ b/src/app/homepage/pages/techniques/mongo/mongo.component.ts @@ -52,11 +52,10 @@ import { Component } from '@nestjs/common'; import { InjectModel } from '@nestjs/mongoose'; import { Cat } from './interfaces/cat.interface'; import { CreateCatDto } from './dto/create-cat.dto'; -import { CatSchema } from './schemas/cat.schema'; @Component() export class CatsService { - constructor(@InjectModel(CatSchema) private readonly catModel: Model) {} + constructor(@InjectModel('Cat') private readonly catModel: Model) {} async create(createCatDto: CreateCatDto): Promise { const createdCat = new this.catModel(createCatDto);