(options, Model)
| 151 | |
| 152 | /* Expand and normalize finder options */ |
| 153 | function mapFinderOptions(options, Model) { |
| 154 | if (options.attributes && Array.isArray(options.attributes)) { |
| 155 | options.attributes = Model._injectDependentVirtualAttributes(options.attributes); |
| 156 | options.attributes = options.attributes.filter(v => !Model._virtualAttributes.has(v)); |
| 157 | } |
| 158 | |
| 159 | mapOptionFieldNames(options, Model); |
| 160 | |
| 161 | return options; |
| 162 | } |
| 163 | exports.mapFinderOptions = mapFinderOptions; |
| 164 | |
| 165 | /* Used to map field names in attributes and where conditions */ |
nothing calls this directly
no test coverage detected