@vinnuvinod/amc-sdk 1.0.6 → 1.0.7

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.
@@ -8,7 +8,7 @@ const validateCreateAMC = (payload) => {
8
8
  if (!((_a = payload.title) === null || _a === void 0 ? void 0 : _a.trim())) {
9
9
  throw new Error("AMC title is required");
10
10
  }
11
- if (!Array.isArray(payload.assignees) || payload.assignees.length === 0) {
11
+ if (Array.isArray(payload.assignees) && payload.assignees.length === 0) {
12
12
  throw new Error("At least one assignee is required");
13
13
  }
14
14
  if (!isValidEnum(payload.priority, constants_1.AMCPriorities)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vinnuvinod/amc-sdk",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {