File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -169,7 +169,7 @@ Example using constructor injection:
169
169
``` typescript
170
170
import { Service } from " typedi" ;
171
171
import { Repository , EntityRepository } from " typeorm" ;
172
- import { OrmCustomRepository } from " typeorm-typedi-extensions" ;
172
+ import { OrmRepository } from " typeorm-typedi-extensions" ;
173
173
import " ../entity/user" ;
174
174
175
175
// create custom Repository class
@@ -192,8 +192,8 @@ export class PostService {
192
192
private readonly userRepository : UserRepository ,
193
193
) {}
194
194
195
- public userExist(user : User ): boolean {
196
- return this .userRepository .findByEmail (user .email ) ? true : false ;
195
+ public async userExist(user : User ): boolean {
196
+ return await this .userRepository .findByEmail (user .email ) ? true : false ;
197
197
}
198
198
199
199
}
You can’t perform that action at this time.
0 commit comments