@steedos/service-fields-indexs 2.2.54-beta.7 → 2.2.54-beta.8
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 +2 -2
- package/package.service.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos/service-fields-indexs",
|
|
3
|
-
"version": "2.2.54-beta.
|
|
3
|
+
"version": "2.2.54-beta.8",
|
|
4
4
|
"main": "package.service.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"dependencies": {
|
|
@@ -10,5 +10,5 @@
|
|
|
10
10
|
"publishConfig": {
|
|
11
11
|
"access": "public"
|
|
12
12
|
},
|
|
13
|
-
"gitHead": "
|
|
13
|
+
"gitHead": "f91a35447a4a07a7d6868748ce911cd660c5fadc"
|
|
14
14
|
}
|
package/package.service.js
CHANGED
|
@@ -4,8 +4,8 @@ const serviceName = project.name;
|
|
|
4
4
|
const objectql = require("@steedos/objectql");
|
|
5
5
|
const schedule = require('node-schedule');
|
|
6
6
|
const path = require('path');
|
|
7
|
-
const globby = require('globby');
|
|
8
7
|
const Fiber = require("fibers");
|
|
8
|
+
const metaDataCore = require('@steedos/metadata-core');
|
|
9
9
|
/**
|
|
10
10
|
* @typedef {import('moleculer').Context} Context Moleculer's Context
|
|
11
11
|
* 软件包服务启动后也需要抛出事件。
|
|
@@ -45,7 +45,7 @@ module.exports = {
|
|
|
45
45
|
const filePatten = [
|
|
46
46
|
path.join(__dirname, 'meteor-collection-indexs', "*.object.js")
|
|
47
47
|
];
|
|
48
|
-
const matchedPaths =
|
|
48
|
+
const matchedPaths = metaDataCore.syncMatchFiles(filePatten);
|
|
49
49
|
_.each(matchedPaths, (matchedPath) => {
|
|
50
50
|
try {
|
|
51
51
|
Fiber(function () {
|