File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
typescript/api-cors-lambda-crud-dynamodb/lambdas Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ export const handler = async (event: any = {}): Promise<any> => {
2626 return { statusCode : 201 , body : '' } ;
2727 } catch ( dbError ) {
2828 const errorResponse = dbError . code === 'ValidationException' && dbError . message . includes ( 'reserved keyword' ) ?
29- DYNAMODB_EXECUTION_ERROR : RESERVED_RESPONSE ;
29+ RESERVED_RESPONSE : DYNAMODB_EXECUTION_ERROR ;
3030 return { statusCode : 500 , body : errorResponse } ;
3131 }
3232} ;
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ export const handler = async (event: any = {}): Promise<any> => {
4848 return { statusCode : 204 , body : '' } ;
4949 } catch ( dbError ) {
5050 const errorResponse = dbError . code === 'ValidationException' && dbError . message . includes ( 'reserved keyword' ) ?
51- DYNAMODB_EXECUTION_ERROR : RESERVED_RESPONSE ;
51+ RESERVED_RESPONSE : DYNAMODB_EXECUTION_ERROR ;
5252 return { statusCode : 500 , body : errorResponse } ;
5353 }
5454} ;
You can’t perform that action at this time.
0 commit comments