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 CHANGED
@@ -1,4 +1,4 @@
1
- VERSION='8.3.6'
1
+ VERSION='8.3.7'
2
2
  TITLE='BiZ9-Logic';
3
3
  REPO='git@github.com:biz9framework/biz9-logic.git';
4
4
  BRANCH='main';
package/index.js CHANGED
@@ -367,18 +367,11 @@ class Type {
367
367
  }
368
368
  }
369
369
  class Stat_Logic {
370
- static get_all_activity = () =>{
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
- { user_id: user_id }
374
+ user_id_filter
382
375
  ]
383
376
  }
384
377
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "biz9-logic",
3
- "version": "4.8.356",
3
+ "version": "4.8.357",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
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(Type.get_title(Type.STAT_VIEW,{get_plural:false,get_lowercase:true,get_url:true}));
33
+ console.log(Stat_Logic.get_user_activity_filter({user_id:1}));
34
34
  console.log('CONNECT-END');
35
35
  call();
36
36
  },