@@ -58,26 +58,26 @@ export class MetadataManager {
5858 logContext,
5959 modelId : identifier ,
6060 } ) ;
61- } catch ( error ) {
62- if ( error instanceof AppError ) {
63- throw error ;
61+ } catch ( err ) {
62+ if ( err instanceof AppError ) {
63+ throw err ;
6464 }
6565 this . logger . error ( {
6666 msg : 'unfamiliar error' ,
6767 logContext,
68- error ,
68+ err ,
6969 } ) ;
70- throw new AppError ( 'error' , StatusCodes . INTERNAL_SERVER_ERROR , String ( error ) , true ) ;
70+ throw new AppError ( 'error' , StatusCodes . INTERNAL_SERVER_ERROR , String ( err ) , true ) ;
7171 }
7272 try {
7373 const response = await this . catalog . patchMetadata ( identifier , payload ) ;
7474 return response ;
75- } catch ( error ) {
75+ } catch ( err ) {
7676 this . logger . error ( {
7777 msg : 'Error while sending to catalog service' ,
7878 logContext,
7979 modelId : identifier ,
80- error ,
80+ err ,
8181 payload,
8282 } ) ;
8383 throw new AppError ( 'catalog' , StatusCodes . INTERNAL_SERVER_ERROR , 'there is an error with catalog' , true ) ;
@@ -108,26 +108,26 @@ export class MetadataManager {
108108 logContext,
109109 modelId : identifier ,
110110 } ) ;
111- } catch ( error ) {
112- if ( error instanceof AppError ) {
113- throw error ;
111+ } catch ( err ) {
112+ if ( err instanceof AppError ) {
113+ throw err ;
114114 }
115115 this . logger . error ( {
116116 msg : 'unfamiliar error' ,
117117 logContext,
118- error ,
118+ err ,
119119 } ) ;
120- throw new AppError ( 'error' , StatusCodes . INTERNAL_SERVER_ERROR , String ( error ) , true ) ;
120+ throw new AppError ( 'error' , StatusCodes . INTERNAL_SERVER_ERROR , String ( err ) , true ) ;
121121 }
122122 try {
123123 const response = await this . catalog . changeStatus ( identifier , payload ) ;
124124 return response ;
125- } catch ( error ) {
125+ } catch ( err ) {
126126 this . logger . error ( {
127127 msg : 'Error while sending to catalog service' ,
128128 logContext,
129129 modelId : identifier ,
130- error ,
130+ err ,
131131 payload,
132132 } ) ;
133133 throw new AppError ( 'catalog' , StatusCodes . INTERNAL_SERVER_ERROR , 'there is an error with catalog' , true ) ;
0 commit comments