File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed
Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 11 {
22 "hooks": {
3- "pre-commit": "test && lint-staged"
3+ "pre-commit": "yarn lint-staged"
44 }
5- },
5+ }
Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ import '../../src/bootstrap'
33import mongoose from 'mongoose'
44
55class MongooseConnection {
6- async connect ( testSuitName : string ) : Promise < void > {
7- mongoose . connect ( `${ process . env . MONGO_URI } -${ testSuitName } ` , {
6+ async connect ( testSuiteName : string ) : Promise < void > {
7+ mongoose . connect ( `${ process . env . MONGO_URI } -${ testSuiteName } ` , {
88 useNewUrlParser : true ,
99 useUnifiedTopology : true ,
1010 useCreateIndex : true
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import * as Yup from 'yup'
33import axios from 'axios'
44import map from 'lodash/map'
55
6- import { GoogleMapPrediction } from '../types'
6+ import { GoogleMapsPrediction } from '../types'
77import googleMapsConfig from '../config/googleMaps'
88
99class CityController {
@@ -19,7 +19,7 @@ class CityController {
1919 params : {
2020 input : req . query . search ,
2121 types : '(cities)' ,
22- language : 'es_US ' ,
22+ language : 'en_US ' ,
2323 key : process . env . GOOGLE_MAPS_API_KEY
2424 }
2525 } )
@@ -30,7 +30,7 @@ class CityController {
3030
3131 const normalizedCities = map (
3232 response . data . predictions ,
33- ( prediction : GoogleMapPrediction ) => prediction . description
33+ ( prediction : GoogleMapsPrediction ) => prediction . description
3434 )
3535
3636 return res . status ( 200 ) . json ( { cities : normalizedCities } )
Original file line number Diff line number Diff line change @@ -6,6 +6,6 @@ export interface AuthRequest extends Request {
66 userId : string
77}
88
9- export interface GoogleMapPrediction {
9+ export interface GoogleMapsPrediction {
1010 description : string
1111}
You can’t perform that action at this time.
0 commit comments