-
Notifications
You must be signed in to change notification settings - Fork 208
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Miroslav Bajtoš <[email protected]>
- Loading branch information
Showing
3 changed files
with
8 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 7 additions & 3 deletions
10
packages/shopping/src/repositories/user-credentials.repository.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} |