(options, Model)
| 164 | |
| 165 | /* Expand and normalize finder options */ |
| 166 | function mapFinderOptions(options, Model) { |
| 167 | if (options.attributes && Array.isArray(options.attributes)) { |
| 168 | options.attributes = Model._injectDependentVirtualAttributes(options.attributes); |
| 169 | options.attributes = options.attributes.filter(v => !Model._virtualAttributes.has(v)); |
| 170 | } |
| 171 | |
| 172 | mapOptionFieldNames(options, Model); |
| 173 | |
| 174 | return options; |
| 175 | } |
| 176 | exports.mapFinderOptions = mapFinderOptions; |
| 177 | |
| 178 | /* Used to map field names in attributes and where conditions */ |
nothing calls this directly
no test coverage detected