Skip to content

Commit 02f47d6

Browse files
2 parents 0b7a14d + 8052316 commit 02f47d6

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

content/discover/who-uses.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,11 @@
198198
{
199199
"logo": "/assets/logo/amplication.svg",
200200
"url": "https://amplication.com"
201+
},
202+
{
203+
"logo": "/assets/logo/hingehealth.png",
204+
"url": "https://hingehealth.com",
205+
"width": "120px"
201206
}
202207
],
203208
"Body": [

content/techniques/mongo.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,12 +138,12 @@ Once you've registered the schema, you can inject a `Cat` model into the `CatsSe
138138
import { Model } from 'mongoose';
139139
import { Injectable } from '@nestjs/common';
140140
import { InjectModel } from '@nestjs/mongoose';
141-
import { Cat, CatDocument } from './schemas/cat.schema';
141+
import { Cat } from './schemas/cat.schema';
142142
import { CreateCatDto } from './dto/create-cat.dto';
143143

144144
@Injectable()
145145
export class CatsService {
146-
constructor(@InjectModel(Cat.name) private catModel: Model<CatDocument>) {}
146+
constructor(@InjectModel(Cat.name) private catModel: Model<Cat>) {}
147147

148148
async create(createCatDto: CreateCatDto): Promise<Cat> {
149149
const createdCat = new this.catModel(createCatDto);
@@ -259,7 +259,7 @@ If you are just looking to inject the model from a named database, you can use t
259259
@@filename(cats.service)
260260
@Injectable()
261261
export class CatsService {
262-
constructor(@InjectModel(Cat.name, 'cats') private catModel: Model<CatDocument>) {}
262+
constructor(@InjectModel(Cat.name, 'cats') private catModel: Model<Cat>) {}
263263
}
264264
@@switch
265265
@Injectable()

src/assets/logo/hingehealth.png

28.4 KB
Loading

0 commit comments

Comments
 (0)