@@ -184,8 +184,8 @@ plugins.setConfigs("crashes", {
184
184
}
185
185
}
186
186
if ( shouldRecalculate ) {
187
- common . db . collection ( 'app_crashusers' + params . app_id ) . find ( { "group" : 0 , crashes : { $gt : 0 } } ) . count ( function ( crashErr , userCount ) {
188
- common . db . collection ( 'app_crashusers' + params . app_id ) . find ( { "group" : 0 , crashes : { $gt : 0 } , fatal : { $gt : 0 } } ) . count ( function ( crashUsersErr , fatalCount ) {
187
+ common . db . collection ( 'app_crashusers' + params . app_id ) . count ( { "group" : 0 , crashes : { $gt : 0 } } , function ( crashErr , userCount ) {
188
+ common . db . collection ( 'app_crashusers' + params . app_id ) . count ( { "group" : 0 , crashes : { $gt : 0 } , fatal : { $gt : 0 } } , function ( crashUsersErr , fatalCount ) {
189
189
var set = { } ;
190
190
set . users = userCount ;
191
191
set . usersfatal = fatalCount ;
@@ -1569,8 +1569,8 @@ plugins.setConfigs("crashes", {
1569
1569
} ) ;
1570
1570
} , function ( ) {
1571
1571
//recalculate users
1572
- common . db . collection ( 'app_crashusers' + params . qstring . app_id ) . find ( { "group" : 0 , crashes : { $gt : 0 } } ) . count ( function ( crashUsersErr , userCount ) {
1573
- common . db . collection ( 'app_crashusers' + params . qstring . app_id ) . find ( { "group" : 0 , crashes : { $gt : 0 } , fatal : { $gt : 0 } } ) . count ( function ( crashGroupsErr , fatalCount ) {
1572
+ common . db . collection ( 'app_crashusers' + params . qstring . app_id ) . count ( { "group" : 0 , crashes : { $gt : 0 } } , function ( crashUsersErr , userCount ) {
1573
+ common . db . collection ( 'app_crashusers' + params . qstring . app_id ) . count ( { "group" : 0 , crashes : { $gt : 0 } , fatal : { $gt : 0 } } , function ( crashGroupsErr , fatalCount ) {
1574
1574
var update = { } ;
1575
1575
update . $set = { } ;
1576
1576
update . $set . users = userCount ;
0 commit comments