@@ -140,7 +140,7 @@ var appsApi = {},
140
140
common . db . collection ( 'app_users' + app . ops [ 0 ] . _id ) . ensureIndex ( { "lac" :1 , "ls" :1 } , { background : true } , function ( err , res ) { } ) ;
141
141
common . db . collection ( 'app_users' + app . ops [ 0 ] . _id ) . ensureIndex ( { "tsd" :1 } , { background : true } , function ( err , res ) { } ) ;
142
142
common . db . collection ( 'app_users' + app . ops [ 0 ] . _id ) . ensureIndex ( { "did" :1 } , { background : true } , function ( err , res ) { } ) ;
143
- common . db . collection ( 'app_user_merges' + app . ops [ 0 ] . _id ) . ensureIndex ( { cd : 1 } , { expireAfterSeconds : 60 * 60 * 2 , background : true } , function ( err , res ) { } ) ;
143
+ common . db . collection ( 'app_user_merges' + app . ops [ 0 ] . _id ) . ensureIndex ( { cd : 1 } , { expireAfterSeconds : 60 * 60 * 3 , background : true } , function ( err , res ) { } ) ;
144
144
common . db . collection ( 'metric_changes' + app . ops [ 0 ] . _id ) . ensureIndex ( { ts :- 1 } , { background : true } , function ( err , res ) { } ) ;
145
145
common . db . collection ( 'metric_changes' + app . ops [ 0 ] . _id ) . ensureIndex ( { uid :1 } , { background : true } , function ( err , res ) { } ) ;
146
146
plugins . dispatch ( "/i/apps/create" , { params :params , appId :app . ops [ 0 ] . _id , data :newApp } ) ;
@@ -326,7 +326,7 @@ var appsApi = {},
326
326
common . db . collection ( 'metric_changes' + appId ) . ensureIndex ( { uid :1 } , { background : true } , function ( err , res ) { } ) ;
327
327
} ) ;
328
328
common . db . collection ( 'app_user_merges' + appId ) . drop ( function ( ) {
329
- common . db . collection ( 'app_user_merges' + appId ) . ensureIndex ( { cd : 1 } , { expireAfterSeconds : 60 * 60 * 2 , background : true } , function ( err , res ) { } ) ;
329
+ common . db . collection ( 'app_user_merges' + appId ) . ensureIndex ( { cd : 1 } , { expireAfterSeconds : 60 * 60 * 3 , background : true } , function ( err , res ) { } ) ;
330
330
} ) ;
331
331
if ( params . qstring . args . period == "reset" ) {
332
332
plugins . dispatch ( "/i/apps/reset" , { params :params , appId :appId , data :app } , deleteEvents ) ;
0 commit comments