not-node 6.3.34 → 6.3.36

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "not-node",
3
- "version": "6.3.34",
3
+ "version": "6.3.36",
4
4
  "description": "node complimentary part for client side notFramework.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -43,9 +43,11 @@ class <%- ModelName %>Logic extends <%- ModelName %>GenericLogic {
43
43
  const action = "<%- actionName %>";
44
44
  Log.debug(
45
45
  `${MODULE_NAME}//Logic//${MODEL_NAME}//${action}`,
46
- targetId,
47
- ip: identity.ip,
48
- root: identity.root,
46
+ {
47
+ targetId,
48
+ ip: identity.ip,
49
+ root: identity.root,
50
+ }
49
51
  );
50
52
  const results = await getModel().<%- actionName %>(
51
53
  targetId,
@@ -48,30 +48,30 @@ module.exports.thisVirtuals = {
48
48
  };
49
49
 
50
50
  module.exports.thisPre = {
51
- updateOne: async () => {
51
+ async updateOne(){
52
52
  <% if (dates){ %>this.updatedAt = new Date();<% } %>
53
53
  // console.debug('model pre updateOne');
54
54
  },
55
- insert: async () => {
55
+ async insert(){
56
56
  //console.log('model pre insert');
57
57
  <% if (dates){ %>this.updatedAt = new Date();
58
58
  this.createdAt = new Date();<% } %>
59
59
  },
60
- save: async () => {
60
+ async save(){
61
61
  //console.log('model pre save');
62
62
  <% if (dates){ %>this.updatedAt = new Date();<% } %>
63
63
  },
64
- update: async () => {
64
+ async update(){
65
65
  //console.log('model pre update' );
66
66
  <% if (dates){ %>this.updatedAt = new Date();<% } %>
67
67
  },
68
68
  };
69
69
 
70
70
  module.exports.thisPost = {
71
- save: async () => {
71
+ async save(){
72
72
  //console.log('model post save');
73
73
  },
74
- update: async () => {
74
+ async update(){
75
75
  //console.log('model post update');
76
76
  },
77
77
  };