@@ -16,7 +16,7 @@ export default class CompanyRout {
1616 . then ( ( company ) =>
1717 res . status ( 201 ) . json ( { message : "registered" , data : company } )
1818 )
19- . catch ( ( err ) => res . status ( 400 ) . json ( { error : "could not register" } ) ) ;
19+ . catch ( ( ) => res . status ( 400 ) . json ( { error : "could not register" } ) ) ;
2020 } ) ;
2121
2222 this . routes . put ( "/:id" , ( req , res ) => {
@@ -25,7 +25,7 @@ export default class CompanyRout {
2525 . then ( ( company ) =>
2626 res . status ( 201 ) . json ( { message : "updated" , data : company } )
2727 )
28- . catch ( ( err ) => res . status ( 400 ) . json ( { error : "could not update" } ) ) ;
28+ . catch ( ( ) => res . status ( 400 ) . json ( { error : "could not update" } ) ) ;
2929 } ) ;
3030
3131 this . routes . get ( "/" , ( req , res ) => {
@@ -34,7 +34,7 @@ export default class CompanyRout {
3434 . then ( ( company ) =>
3535 res . status ( 201 ) . json ( { message : "found" , data : company } )
3636 )
37- . catch ( ( err ) => res . status ( 400 ) . json ( { error : "could not find" } ) ) ;
37+ . catch ( ( ) => res . status ( 400 ) . json ( { error : "could not find" } ) ) ;
3838 } ) ;
3939
4040 this . routes . get ( "/:id" , ( req , res ) => {
@@ -43,7 +43,7 @@ export default class CompanyRout {
4343 . then ( ( company ) =>
4444 res . status ( 201 ) . json ( { message : "found" , data : company } )
4545 )
46- . catch ( ( err ) => res . status ( 400 ) . json ( { error : "could not find" } ) ) ;
46+ . catch ( ( ) => res . status ( 400 ) . json ( { error : "could not find" } ) ) ;
4747 } ) ;
4848
4949 this . routes . delete ( "/:id" , ( req , res ) => {
@@ -52,7 +52,7 @@ export default class CompanyRout {
5252 . then ( ( company ) =>
5353 res . status ( 201 ) . json ( { message : "deleted" , data : company } )
5454 )
55- . catch ( ( err ) => res . status ( 400 ) . json ( { error : "could not delete" } ) ) ;
55+ . catch ( ( ) => res . status ( 400 ) . json ( { error : "could not delete" } ) ) ;
5656 } ) ;
5757 }
5858}
0 commit comments