diff --git a/packages/shopping/src/controllers/user.controller.ts b/packages/shopping/src/controllers/user.controller.ts index 92d8afe30..83f43705c 100644 --- a/packages/shopping/src/controllers/user.controller.ts +++ b/packages/shopping/src/controllers/user.controller.ts @@ -80,7 +80,6 @@ export class UserController { 'application/json': { schema: getModelSchemaRef(NewUserRequest, { title: 'NewUser', - exclude: ['id'], }), }, }, diff --git a/packages/shopping/src/models/user.model.ts b/packages/shopping/src/models/user.model.ts index 44248e530..6cfed3329 100644 --- a/packages/shopping/src/models/user.model.ts +++ b/packages/shopping/src/models/user.model.ts @@ -1,4 +1,4 @@ -// Copyright IBM Corp. 2018. All Rights Reserved. +// Copyright IBM Corp. 2019. All Rights Reserved. // Node module: loopback4-example-shopping // This file is licensed under the MIT License. // License text available at https://opensource.org/licenses/MIT diff --git a/packages/shopping/src/repositories/user-credentials.repository.ts b/packages/shopping/src/repositories/user-credentials.repository.ts index cc4237c8b..7f1ec51a1 100644 --- a/packages/shopping/src/repositories/user-credentials.repository.ts +++ b/packages/shopping/src/repositories/user-credentials.repository.ts @@ -1,6 +1,10 @@ -import {DefaultCrudRepository} from '@loopback/repository'; +// Copyright IBM Corp. 2019. All Rights Reserved. +// Node module: loopback4-example-shopping +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + +import {DefaultCrudRepository, juggler} from '@loopback/repository'; import {UserCredentials, UserCredentialsRelations} from '../models'; -import {MongoDataSource} from '../datasources'; import {inject} from '@loopback/core'; export class UserCredentialsRepository extends DefaultCrudRepository< @@ -8,7 +12,7 @@ export class UserCredentialsRepository extends DefaultCrudRepository< typeof UserCredentials.prototype.id, UserCredentialsRelations > { - constructor(@inject('datasources.mongo') dataSource: MongoDataSource) { + constructor(@inject('datasources.mongo') dataSource: juggler.DataSource) { super(UserCredentials, dataSource); } }