@friggframework/core 2.0.0--canary.459.c38865e.0 → 2.0.0--canary.459.32c3f4b.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.
@@ -170,16 +170,20 @@ class ProcessRepositoryPostgres extends ProcessRepositoryInterface {
170
170
  */
171
171
  _toPlainObject(process) {
172
172
  return {
173
- id: process.id,
174
- userId: process.userId,
175
- integrationId: process.integrationId,
173
+ id: String(process.id),
174
+ userId: String(process.userId),
175
+ integrationId: String(process.integrationId),
176
176
  name: process.name,
177
177
  type: process.type,
178
178
  state: process.state,
179
179
  context: process.context,
180
180
  results: process.results,
181
- childProcesses: process.childProcesses,
182
- parentProcessId: process.parentProcessId,
181
+ childProcesses: Array.isArray(process.childProcesses)
182
+ ? (process.childProcesses.length > 0 && typeof process.childProcesses[0] === 'object' && process.childProcesses[0] !== null
183
+ ? process.childProcesses.map(child => String(child.id))
184
+ : process.childProcesses)
185
+ : [],
186
+ parentProcessId: process.parentProcessId !== null ? String(process.parentProcessId) : null,
183
187
  createdAt: process.createdAt,
184
188
  updatedAt: process.updatedAt,
185
189
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@friggframework/core",
3
3
  "prettier": "@friggframework/prettier-config",
4
- "version": "2.0.0--canary.459.c38865e.0",
4
+ "version": "2.0.0--canary.459.32c3f4b.0",
5
5
  "dependencies": {
6
6
  "@hapi/boom": "^10.0.1",
7
7
  "@prisma/client": "^6.16.3",
@@ -23,9 +23,9 @@
23
23
  "uuid": "^9.0.1"
24
24
  },
25
25
  "devDependencies": {
26
- "@friggframework/eslint-config": "2.0.0--canary.459.c38865e.0",
27
- "@friggframework/prettier-config": "2.0.0--canary.459.c38865e.0",
28
- "@friggframework/test": "2.0.0--canary.459.c38865e.0",
26
+ "@friggframework/eslint-config": "2.0.0--canary.459.32c3f4b.0",
27
+ "@friggframework/prettier-config": "2.0.0--canary.459.32c3f4b.0",
28
+ "@friggframework/test": "2.0.0--canary.459.32c3f4b.0",
29
29
  "@types/lodash": "4.17.15",
30
30
  "@typescript-eslint/eslint-plugin": "^8.0.0",
31
31
  "chai": "^4.3.6",
@@ -64,5 +64,5 @@
64
64
  "publishConfig": {
65
65
  "access": "public"
66
66
  },
67
- "gitHead": "c38865e45dc6b0ca4ac79a49d25e0971a19ad021"
67
+ "gitHead": "32c3f4bf28280b643a866fcb7811a82cdcc6004e"
68
68
  }