@@ -28,7 +28,7 @@ export function Model(opts: ModelData = {}): ClassDecorator {
2828 : Reflect . getMetadata ( KEY_PROPERTY , constructor ) ) || [ ]
2929
3030 // get partition key
31- const partitionKeys = properties . filter ( property => property . key && property . key . type === 'HASH' )
31+ const partitionKeys = properties . filter ( ( property ) => property . key && property . key . type === 'HASH' )
3232
3333 const partitionKeyName : string | null = partitionKeys . length ? partitionKeys [ 0 ] . nameDb : null
3434
@@ -40,7 +40,7 @@ export function Model(opts: ModelData = {}): ClassDecorator {
4040 const indexes : Map < string , SecondaryIndex < any > > = new Map ( [ ...globalSecondaryIndexes , ...localSecondaryIndexes ] )
4141
4242 const transientProperties = properties . length
43- ? properties . filter ( property => property . transient === true ) . map ( property => property . name )
43+ ? properties . filter ( ( property ) => property . transient === true ) . map ( ( property ) => property . name )
4444 : [ ]
4545
4646 const metaData : ModelMetadata < any > = {
@@ -80,7 +80,7 @@ function testForLSI<T>(property: PropertyMetadata<T>): property is PropertyMetad
8080function getGlobalSecondaryIndexes ( properties : Array < PropertyMetadata < any > > ) : Map < string , SecondaryIndex < any > > {
8181 return properties . filter ( testForGSI ) . reduce ( ( map , property ) : Map < string , SecondaryIndex < any > > => {
8282 let gsi : SecondaryIndex < any >
83- Object . keys ( property . keyForGSI ) . forEach ( indexName => {
83+ Object . keys ( property . keyForGSI ) . forEach ( ( indexName ) => {
8484 if ( map . has ( indexName ) ) {
8585 gsi = map . get ( indexName )
8686 } else {
@@ -119,7 +119,7 @@ function getLocalSecondaryIndexes(
119119 return properties . filter ( testForLSI ) . reduce ( ( map , property ) : Map < string , SecondaryIndex < any > > => {
120120 let lsi : SecondaryIndex < any >
121121
122- property . sortKeyForLSI . forEach ( indexName => {
122+ property . sortKeyForLSI . forEach ( ( indexName ) => {
123123 if ( map . has ( indexName ) ) {
124124 throw new Error ( modelErrors . lsiMultipleSk ( indexName , property . nameDb ) )
125125 }
0 commit comments