Skip to content

Commit

Permalink
fixup! address review comments
Browse files Browse the repository at this point in the history
Signed-off-by: Miroslav Bajtoš <[email protected]>
  • Loading branch information
bajtos committed Nov 15, 2019
1 parent 19d6c92 commit 24ff52c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
1 change: 0 additions & 1 deletion packages/shopping/src/controllers/user.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ export class UserController {
'application/json': {
schema: getModelSchemaRef(NewUserRequest, {
title: 'NewUser',
exclude: ['id'],
}),
},
},
Expand Down
2 changes: 1 addition & 1 deletion packages/shopping/src/models/user.model.ts
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
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<
UserCredentials,
typeof UserCredentials.prototype.id,
UserCredentialsRelations
> {
constructor(@inject('datasources.mongo') dataSource: MongoDataSource) {
constructor(@inject('datasources.mongo') dataSource: juggler.DataSource) {
super(UserCredentials, dataSource);
}
}

0 comments on commit 24ff52c

Please sign in to comment.