@@ -7,7 +7,7 @@ const redisKey = require('../utils/key.js');
77const { USERS_METADATA , USERS_AUDIENCE } = require ( '../constants.js' ) ;
88
99const JSONStringify = ( data ) => JSON . stringify ( data ) ;
10- const JSONParse = data => JSON . parse ( data ) ;
10+ const JSONParse = ( data ) => JSON . parse ( data ) ;
1111const has = Object . prototype . hasOwnProperty ;
1212
1313function callUpdateMetadataScript ( redis , userId , ops ) {
@@ -74,7 +74,7 @@ function updateMetadata(opts) {
7474 return Promise . reject ( new HttpStatusError ( 400 , 'audiences must match metadata entries' ) ) ;
7575 }
7676
77- const metaOps = rawMetaOps . map ( opBlock => prepareOps ( opBlock ) ) ;
77+ const metaOps = rawMetaOps . map ( ( opBlock ) => prepareOps ( opBlock ) ) ;
7878
7979 scriptOpts = { metaOps, ...scriptOpts } ;
8080 return callUpdateMetadataScript ( redis , userId , scriptOpts )
@@ -94,7 +94,7 @@ function updateMetadata(opts) {
9494
9595 scriptOpts = { scripts, ...scriptOpts } ;
9696 return callUpdateMetadataScript ( redis , userId , scriptOpts )
97- . then ( result => JSONParse ( result ) ) ;
97+ . then ( ( result ) => JSONParse ( result ) ) ;
9898}
9999
100100updateMetadata . callUpdateMetadataScript = callUpdateMetadataScript ;
0 commit comments