Commit f008e40
committed
refactor: Enhance N1QL queries for airlines and routes
Updated N1QL queries in the Airline and Route models to include type checks for 'airline' and 'route', respectively, ensuring more accurate data retrieval. Additionally, modified the airlines_spec to include new airline entries and removed duplicates for improved test accuracy.
Changes:
- Added type conditions in N1QL queries for better data filtering
- Updated expected airline data in airlines_spec for consistency1 parent 653ebee commit f008e40
File tree
3 files changed
+8
-8
lines changed- app/models
- spec/requests/api/v1
3 files changed
+8
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
194 | | - | |
195 | | - | |
196 | 194 | | |
197 | 195 | | |
| 196 | + | |
| 197 | + | |
198 | 198 | | |
199 | 199 | | |
| 200 | + | |
| 201 | + | |
200 | 202 | | |
201 | 203 | | |
| 204 | + | |
| 205 | + | |
202 | 206 | | |
203 | 207 | | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
| |||
0 commit comments