Created
July 14, 2019 15:08
-
-
Save hzburki/4d1a22c3cb2179f850425700c94135b3 to your computer and use it in GitHub Desktop.
Exporting user entity model so it can be injected into NestJS services - NestJS SequelizeJS
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
import { User } from './user.entity'; | |
import { USER_REPOSITORY } from '../utils/constants'; | |
export const userProviders = [ | |
{ | |
provide: USER_REPOSITORY, | |
useValue: User, | |
}, | |
]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment