(content: any)
| 370 | } |
| 371 | |
| 372 | private parseCondition(content: any): NestedWhere { |
| 373 | if (Array.isArray(content)) { |
| 374 | return this.parseConditions(content); |
| 375 | } |
| 376 | |
| 377 | if (!content) { |
| 378 | return []; |
| 379 | } |
| 380 | |
| 381 | const wheres: IWhere[] = []; |
| 382 | for (const key in content) { |
| 383 | wheres.push(this.parseConditionObject(content, key)); |
| 384 | } |
| 385 | |
| 386 | return wheres; |
| 387 | } |
| 388 | |
| 389 | private parseConditionObject(content: any, key: string): IWhere { |
| 390 | const where: IWhere = { |
no test coverage detected