Skip to content

Commit 410017e

Browse files
committed
Use generic for model an remove await as it's not needed
1 parent 2829eb6 commit 410017e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/api/repositories/UserRepository.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ export class UserRepository {
2727
* @memberof UserRepository
2828
*/
2929
public async findAll(): Promise<Bookshelf.Collection<User>> {
30-
const users = await this.UserModel.fetchAll();
31-
return <Bookshelf.Collection<User>>users;
30+
return this.UserModel.fetchAll<User>();
3231
}
3332

3433
/**

0 commit comments

Comments
 (0)