-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(config): allow WARTHOG_DB_URL to set all DB config (#419)
- Loading branch information
1 parent
d598d3e
commit 5a75c4a
Showing
8 changed files
with
116 additions
and
194 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
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
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
14 changes: 14 additions & 0 deletions
14
examples/02-complex-example/src/modules/user/user.service.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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { Service } from 'typedi'; | ||
import { Repository } from 'typeorm'; | ||
import { InjectRepository } from 'typeorm-typedi-extensions'; | ||
|
||
import { BaseService } from '../../../../../src'; | ||
|
||
import { User } from './user.model'; | ||
|
||
@Service('UserService') | ||
export class UserService extends BaseService<User> { | ||
constructor(@InjectRepository(User) protected readonly repository: Repository<User>) { | ||
super(User, repository); | ||
} | ||
} |
Oops, something went wrong.