(project_id, path, method, select)
| 142 | } |
| 143 | |
| 144 | getByPath(project_id, path, method, select) { |
| 145 | select = |
| 146 | select || |
| 147 | '_id title uid path method project_id catid edit_uid status add_time up_time type query_path req_query req_headers req_params req_body_type req_body_form req_body_other res_body_type custom_field_value res_body res_body_is_json_schema req_body_is_json_schema'; |
| 148 | return this.model |
| 149 | .find({ |
| 150 | project_id: project_id, |
| 151 | path: path, |
| 152 | method: method |
| 153 | }) |
| 154 | .select(select) |
| 155 | .exec(); |
| 156 | } |
| 157 | |
| 158 | checkRepeat(id, path, method) { |
| 159 | return this.model.countDocuments({ |
no outgoing calls
no test coverage detected