Skip to content

Commit

Permalink
Merge pull request nestjs#57 from silvelo/master
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmysliwiec authored Mar 30, 2018
2 parents 0b1f3ca + b3da505 commit 7d4a5bd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions src/app/homepage/pages/techniques/mongo/mongo.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<Cat>) {}
constructor(@InjectModel('Cat') private readonly catModel: Model<Cat>) {}
async create(createCatDto: CreateCatDto): Promise<Cat> {
const createdCat = new this.catModel(createCatDto);
Expand Down

0 comments on commit 7d4a5bd

Please sign in to comment.