File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed
backend/src/services/database Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -51,29 +51,23 @@ export class WrappedRepository<Entity extends ObjectLiteral> {
51
51
return this . repository . count ( options )
52
52
}
53
53
54
- countBy (
55
- where : FindOptionsWhere < Entity > | FindOptionsWhere < Entity > [ ] ,
56
- ) : Promise < number > {
54
+ countBy ( where : FindOptionsWhere < Entity > ) : Promise < number > {
57
55
return this . repository . countBy ( where )
58
56
}
59
57
60
58
find ( options ?: FindManyOptions < Entity > ) : Promise < Entity [ ] > {
61
59
return this . repository . find ( options )
62
60
}
63
61
64
- findBy (
65
- where : FindOptionsWhere < Entity > | FindOptionsWhere < Entity > [ ] ,
66
- ) : Promise < Entity [ ] > {
62
+ findBy ( where : FindOptionsWhere < Entity > ) : Promise < Entity [ ] > {
67
63
return this . repository . findBy ( where )
68
64
}
69
65
70
66
findOne ( options : FindOneOptions < Entity > ) : Promise < Entity | null > {
71
67
return this . repository . findOne ( options )
72
68
}
73
69
74
- findOneBy (
75
- where : FindOptionsWhere < Entity > | FindOptionsWhere < Entity > [ ] ,
76
- ) : Promise < Entity | null > {
70
+ findOneBy ( where : FindOptionsWhere < Entity > ) : Promise < Entity | null > {
77
71
return this . repository . findOneBy ( where )
78
72
}
79
73
You can’t perform that action at this time.
0 commit comments