Skip to content

Commit c1b9099

Browse files
committed
Remove async as it's not nesessary
1 parent 410017e commit c1b9099

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/api/requests/UserUpdateRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export class UserUpdateRequest extends RequestBody {
3131
* We override the validate method so we can skip the missing
3232
* properties.
3333
*/
34-
public async validate(): Promise<void> {
34+
public validate(): Promise<void> {
3535
return super.validate(true);
3636
}
3737

src/api/services/UserService.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import { UserCreatedListener } from '../listeners/UserCreatedListener';
2626

2727
export class UserService {
2828

29-
public log: Log;
29+
private log: Log;
3030

3131
constructor(
3232
@inject(Types.Repository) @named(Repository.UserRepository) public userRepo: UserRepository,
@@ -39,7 +39,7 @@ export class UserService {
3939
/**
4040
* This returns all user database objects
4141
*/
42-
public async findAll(): Promise<Bookshelf.Collection<User>> {
42+
public findAll(): Promise<Bookshelf.Collection<User>> {
4343
return this.userRepo.findAll();
4444
}
4545

@@ -115,8 +115,8 @@ export class UserService {
115115
* @param {number} id of the user
116116
* @returns {Promise<void>}
117117
*/
118-
public async destroy(id: number): Promise<void> {
119-
await this.userRepo.destroy(id);
118+
public destroy(id: number): Promise<void> {
119+
return this.userRepo.destroy(id);
120120
}
121121

122122
}

0 commit comments

Comments
 (0)