(conditions: any)
| 360 | } |
| 361 | |
| 362 | private parseConditions(conditions: any): NestedWhere { |
| 363 | if (!Array.isArray(conditions)) { |
| 364 | throw new Error("An array should be sent to parseConditions() method."); |
| 365 | } |
| 366 | |
| 367 | return conditions.map((condition) => { |
| 368 | return this.parseCondition(condition); |
| 369 | }); |
| 370 | } |
| 371 | |
| 372 | private parseCondition(content: any): NestedWhere { |
| 373 | if (Array.isArray(content)) { |
no test coverage detected