Download src/modules/user/user.provider.ts from bardd/node-pt: direct link, hf CLI and curl.
- Browser
- Download file 343 Bytes
-
https://huggingface.co/spaces/bardd/node-pt/resolve/main/src/modules/user/user.provider.ts
- Command line
-
hf download hf://spaces/bardd/node-pt/src/modules/user/user.provider.ts
-
curl -L -o user.provider.ts https://huggingface.co/spaces/bardd/node-pt/resolve/main/src/modules/user/user.provider.ts
343 Bytes
| import { Connection } from 'mongoose'; | |
| import { USERS, USER_REPOSITORY } from 'src/constants'; | |
| import { UserSchema } from './user.schema'; | |
| export const usersProviders = [ | |
| { | |
| provide: USER_REPOSITORY, | |
| useFactory: (connection: Connection) => connection.model(USERS, UserSchema), | |
| inject: ['DATABASE_CONNECTION'], | |
| }, | |
| ]; | |