File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ import { UserCreatedListener } from '../listeners/UserCreatedListener';
2626
2727export 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}
You can’t perform that action at this time.
0 commit comments