We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2829eb6 commit 410017eCopy full SHA for 410017e
src/api/repositories/UserRepository.ts
@@ -27,8 +27,7 @@ export class UserRepository {
27
* @memberof UserRepository
28
*/
29
public async findAll(): Promise<Bookshelf.Collection<User>> {
30
- const users = await this.UserModel.fetchAll();
31
- return <Bookshelf.Collection<User>>users;
+ return this.UserModel.fetchAll<User>();
32
}
33
34
/**
0 commit comments