@orion-js/dogs 3.1.7 → 3.1.12
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/lib/repos/JobsRepo.js +4 -1
- package/package.json +6 -6
package/lib/repos/JobsRepo.js
CHANGED
|
@@ -10,6 +10,7 @@ exports.JobsRepo = void 0;
|
|
|
10
10
|
const logger_1 = require("@orion-js/logger");
|
|
11
11
|
const mongodb_1 = require("@orion-js/mongodb");
|
|
12
12
|
const services_1 = require("@orion-js/services");
|
|
13
|
+
const lodash_1 = require("lodash");
|
|
13
14
|
const JobRecord_1 = require("../types/JobRecord");
|
|
14
15
|
let JobsRepo = class JobsRepo {
|
|
15
16
|
constructor() {
|
|
@@ -135,7 +136,9 @@ let JobsRepo = class JobsRepo {
|
|
|
135
136
|
});
|
|
136
137
|
}
|
|
137
138
|
catch (error) {
|
|
138
|
-
if (error.
|
|
139
|
+
if (error.isValidationError &&
|
|
140
|
+
(0, lodash_1.values)(error.validationErrors).includes('notUnique') &&
|
|
141
|
+
options.uniqueIdentifier) {
|
|
139
142
|
logger_1.logger.info(`Job "${options.name}" with identifier "${options.uniqueIdentifier}" already exists`);
|
|
140
143
|
}
|
|
141
144
|
else {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orion-js/dogs",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.12",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"types": "lib/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
"upgrade-interactive": "yarn upgrade-interactive"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@orion-js/helpers": "^3.1.
|
|
21
|
-
"@orion-js/mongodb": "^3.1.
|
|
22
|
-
"@orion-js/services": "^3.1.
|
|
23
|
-
"@orion-js/typed-model": "^3.1.
|
|
20
|
+
"@orion-js/helpers": "^3.1.12",
|
|
21
|
+
"@orion-js/mongodb": "^3.1.12",
|
|
22
|
+
"@orion-js/services": "^3.1.12",
|
|
23
|
+
"@orion-js/typed-model": "^3.1.12"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
26
|
"@orion-js/logger": "3.1.0-alpha.12"
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"publishConfig": {
|
|
40
40
|
"access": "public"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "a6b82a931bea3179dfac4099579096c4f7a780bb"
|
|
43
43
|
}
|