@cofondateurauchomage/libs 1.0.31 → 1.0.33
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/db.model.d.ts +1 -0
- package/package.json +1 -1
- package/lib/utils/checkSkills.d.ts +0 -7
- package/lib/utils/checkSkills.js +0 -19
package/lib/db.model.d.ts
CHANGED
package/package.json
CHANGED
package/lib/utils/checkSkills.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.checkSkills = void 0;
|
|
4
|
-
const const_1 = require("../const");
|
|
5
|
-
/**
|
|
6
|
-
* Checks if at least one skill is checked and has the correct value
|
|
7
|
-
* @param skills
|
|
8
|
-
* @returns
|
|
9
|
-
*/
|
|
10
|
-
function checkSkills(skills) {
|
|
11
|
-
let valid = skills && skills.length > 0 ? true : false;
|
|
12
|
-
skills &&
|
|
13
|
-
skills.forEach((skill) => {
|
|
14
|
-
if (!const_1.SKILLS.includes(skill))
|
|
15
|
-
valid = false;
|
|
16
|
-
});
|
|
17
|
-
return valid;
|
|
18
|
-
}
|
|
19
|
-
exports.checkSkills = checkSkills;
|