@@ -94,16 +94,16 @@ module openflow {
9494 this . collection = "openrpa" ;
9595 this . basequery = { _type : "workflow" } ;
9696 this . baseprojection = { _type : 1 , type : 1 , name : 1 , _created : 1 , _createdby : 1 , _modified : 1 } ;
97+ this . postloadData = this . processdata ;
9798 WebSocketClient . onSignedin ( ( user : TokenUser ) => {
9899 this . loadData ( ) ;
99100 } ) ;
100101 }
101- async loadData ( ) : Promise < void > {
102+ async processdata ( ) {
102103 this . loading = true ;
103104 this . charts = [ ] ;
104- var chart : chartset = null ;
105- this . models = await this . api . Query ( this . collection , this . basequery , null , null ) ;
106105 if ( ! this . $scope . $$phase ) { this . $scope . $apply ( ) ; }
106+ var chart : chartset = null ;
107107 for ( var i = 0 ; i < this . models . length ; i ++ ) {
108108 var workflow = this . models [ i ] as any ;
109109 var d = new Date ( ) ;
@@ -137,15 +137,6 @@ module openflow {
137137 return reducedValue ;
138138 } , { _type : "workflowinstance" , WorkflowId : workflow . _id , "_created" : { "$gte" : new Date ( d . toISOString ( ) ) } } , { inline : 1 } , null ) ;
139139
140-
141-
142- // // {$where : function() { return this.date.getMonth() == 11} }
143- // var q = { _type: "workflowinstance", WorkflowId: workflow._id, "_created": { "$gte": new Date(d.toISOString()) } };
144- // // var q = { _type: "workflowinstance", WorkflowId: workflow._id, "_created": { "$gte": new Date("2010-04-30T00:00:00.000Z") } };
145-
146- // workflow.instances = await this.api.Query("openrpa_instances", q, null, null, 100);
147-
148-
149140 chart = new chartset ( ) ;
150141 chart . charttype = "line"
151142 chart . data = [ ] ;
@@ -1302,6 +1293,7 @@ module openflow {
13021293 this . autorefresh = true ;
13031294 this . autorefreshinterval = 5000 ;
13041295 console . debug ( "jslogCtrl" ) ;
1296+ this . searchfields = [ "_createdby" , "host" , "message" ] ;
13051297 this . collection = "jslog" ;
13061298 this . basequery = { } ;
13071299 this . orderby = { _created : - 1 } ;
0 commit comments