(whereA, whereB)
| 4731 | } |
| 4732 | |
| 4733 | function combineWheresWithAnd(whereA, whereB) { |
| 4734 | const unpackedA = unpackAnd(whereA); |
| 4735 | |
| 4736 | if (unpackedA === undefined) { |
| 4737 | return whereB; |
| 4738 | } |
| 4739 | |
| 4740 | const unpackedB = unpackAnd(whereB); |
| 4741 | |
| 4742 | if (unpackedB === undefined) { |
| 4743 | return whereA; |
| 4744 | } |
| 4745 | |
| 4746 | return { |
| 4747 | [Op.and]: _.flatten([unpackedA, unpackedB]) |
| 4748 | }; |
| 4749 | } |
| 4750 | |
| 4751 | Object.assign(Model, associationsMixin); |
| 4752 | Hooks.applyTo(Model, true); |
no test coverage detected