owl-cli 6.98.0 → 6.100.0

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.
@@ -500,7 +500,7 @@ var @projectCodeService = (function (pigeon) {
500
500
  throw JSON.stringify(ret);
501
501
  }
502
502
 
503
- data.id = f.getId(data)
503
+
504
504
  data['owl_createTime'] = new Date().getTime();
505
505
  data['owl_modifyTime'] = new Date().getTime();
506
506
  data['_v'] = 0
@@ -510,8 +510,10 @@ var @projectCodeService = (function (pigeon) {
510
510
  if(meta.isTree){
511
511
  f.updateParentPath(data);
512
512
  }
513
- pigeon.lock(f.getLock(data))
513
+
514
514
  EventBusService.fire(spec['_t'] + '_add_before', {data: data, env: env})
515
+ data.id = f.getId(data)
516
+ pigeon.lock(f.getLock(data))
515
517
  f.saveUniqueFields(data, env)
516
518
  pigeon.saveObject(data.id, data)
517
519
  f.addToList(data)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "owl-cli",
3
- "version": "6.98.0",
3
+ "version": "6.100.0",
4
4
  "main": "index.js",
5
5
  "preferGlobal": true,
6
6
  "bin": {