File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
dynamo/request/batchgetsingletable Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { map } from 'rxjs/operators'
55import { Metadata } from '../../../decorator/metadata/metadata'
66import { MetadataHelper } from '../../../decorator/metadata/metadata-helper'
77import { Mapper } from '../../../mapper/mapper'
8- import { Attributes , Attributes } from '../../../mapper/type/attribute.type'
8+ import { Attributes } from '../../../mapper/type/attribute.type'
99import { ModelConstructor } from '../../../model/model-constructor'
1010import { DynamoRx } from '../../dynamo-rx'
1111import { BatchGetSingleTableResponse } from './batch-get-single-table.response'
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ export class Mapper {
5656 */
5757 const propertyValue = Mapper . getPropertyValue ( item , propertyKey )
5858
59- let attributeValue : any | undefined | null
59+ let attributeValue : Attribute | undefined | null
6060
6161 // TODO concept maybe make this configurable how to map undefined & null values
6262 if ( propertyValue === undefined || propertyValue === null ) {
@@ -105,7 +105,7 @@ export class Mapper {
105105 } else if ( attributeValue === null ) {
106106 // empty values (string, set, list) will be ignored too
107107 } else {
108- mapped [ propertyMetadata ? propertyMetadata . nameDb : < string > propertyKey ] = attributeValue
108+ ; ( < any > mapped ) [ propertyMetadata ? propertyMetadata . nameDb : propertyKey ] = attributeValue
109109 }
110110 }
111111 } )
You can’t perform that action at this time.
0 commit comments