biz9-logic 4.8.356 → 4.8.357
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/biz9_config +1 -1
- package/index.js +2 -9
- package/package.json +1 -1
- package/test.js +2 -2
package/biz9_config
CHANGED
package/index.js
CHANGED
|
@@ -367,18 +367,11 @@ class Type {
|
|
|
367
367
|
}
|
|
368
368
|
}
|
|
369
369
|
class Stat_Logic {
|
|
370
|
-
static
|
|
371
|
-
return {
|
|
372
|
-
$or: [
|
|
373
|
-
{ type: { $regex:String(Type.STAT_LOGIN), $options: "i" } },
|
|
374
|
-
{ type: { $regex:String(Type.STAT_REGISTER), $options: "i" } },
|
|
375
|
-
] };
|
|
376
|
-
}
|
|
377
|
-
static get_user_activity = (user_id) =>{
|
|
370
|
+
static get_user_activity_filter = (user_id_filter) =>{
|
|
378
371
|
return {
|
|
379
372
|
$and: [
|
|
380
373
|
{ $or: [ { type: Type.STAT_LOGIN }, { type: Type.STAT_REGISTER } ] },
|
|
381
|
-
|
|
374
|
+
user_id_filter
|
|
382
375
|
]
|
|
383
376
|
}
|
|
384
377
|
}
|
package/package.json
CHANGED
package/test.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const series = require('async-series');
|
|
2
|
-
const {DataItem,DataType,Page_Logic,Type} = require('./index');
|
|
2
|
+
const {DataItem,DataType,Page_Logic,Type,Stat_Logic} = require('./index');
|
|
3
3
|
const {Log,Num} = require('biz9-utility');
|
|
4
4
|
const {Scriptz}= require('biz9-scriptz');
|
|
5
5
|
|
|
@@ -30,7 +30,7 @@ describe("connect", () => {
|
|
|
30
30
|
series([
|
|
31
31
|
function(call) {
|
|
32
32
|
console.log('CONNECT-START');
|
|
33
|
-
console.log(
|
|
33
|
+
console.log(Stat_Logic.get_user_activity_filter({user_id:1}));
|
|
34
34
|
console.log('CONNECT-END');
|
|
35
35
|
call();
|
|
36
36
|
},
|