Skip to content

Commit

Permalink
Merge pull request #25 from xpume/main
Browse files Browse the repository at this point in the history
fix typo
  • Loading branch information
mmorejon authored Jan 28, 2023
2 parents d05c94f + a925e32 commit 45c5e05
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions bookings/cmd/app/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func main() {
serverAddr := flag.String("serverAddr", "", "HTTP server network address")
serverPort := flag.Int("serverPort", 4000, "HTTP server network port")
mongoURI := flag.String("mongoURI", "mongodb://localhost:27017", "Database hostname url")
mongoDatabse := flag.String("mongoDatabse", "bookings", "Database name")
mongoDatabase := flag.String("mongoDatabase", "bookings", "Database name")
enableCredentials := flag.Bool("enableCredentials", false, "Enable the use of credentials for mongo connection")
flag.Parse()

Expand Down Expand Up @@ -69,7 +69,7 @@ func main() {
infoLog: infoLog,
errorLog: errLog,
bookings: &mongodb.BookingModel{
C: client.Database(*mongoDatabse).Collection("bookings"),
C: client.Database(*mongoDatabase).Collection("bookings"),
},
}

Expand Down
4 changes: 2 additions & 2 deletions movies/cmd/app/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func main() {
serverAddr := flag.String("serverAddr", "", "HTTP server network address")
serverPort := flag.Int("serverPort", 4000, "HTTP server network port")
mongoURI := flag.String("mongoURI", "mongodb://localhost:27017", "Database hostname url")
mongoDatabse := flag.String("mongoDatabse", "movies", "Database name")
mongoDatabase := flag.String("mongoDatabase", "movies", "Database name")
enableCredentials := flag.Bool("enableCredentials", false, "Enable the use of credentials for mongo connection")
flag.Parse()

Expand Down Expand Up @@ -69,7 +69,7 @@ func main() {
infoLog: infoLog,
errorLog: errLog,
movies: &mongodb.MovieModel{
C: client.Database(*mongoDatabse).Collection("movies"),
C: client.Database(*mongoDatabase).Collection("movies"),
},
}

Expand Down
4 changes: 2 additions & 2 deletions showtimes/cmd/app/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func main() {
serverAddr := flag.String("serverAddr", "", "HTTP server network address")
serverPort := flag.Int("serverPort", 4000, "HTTP server network port")
mongoURI := flag.String("mongoURI", "mongodb://localhost:27017", "Database hostname url")
mongoDatabse := flag.String("mongoDatabse", "showtimes", "Database name")
mongoDatabase := flag.String("mongoDatabase", "showtimes", "Database name")
enableCredentials := flag.Bool("enableCredentials", false, "Enable the use of credentials for mongo connection")
flag.Parse()

Expand Down Expand Up @@ -69,7 +69,7 @@ func main() {
infoLog: infoLog,
errorLog: errLog,
showtimes: &mongodb.ShowTimeModel{
C: client.Database(*mongoDatabse).Collection("showtimes"),
C: client.Database(*mongoDatabase).Collection("showtimes"),
},
}

Expand Down
4 changes: 2 additions & 2 deletions users/cmd/app/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func main() {
serverAddr := flag.String("serverAddr", "", "HTTP server network address")
serverPort := flag.Int("serverPort", 4000, "HTTP server network port")
mongoURI := flag.String("mongoURI", "mongodb://localhost:27017", "Database hostname url")
mongoDatabse := flag.String("mongoDatabse", "users", "Database name")
mongoDatabase := flag.String("mongoDatabase", "users", "Database name")
enableCredentials := flag.Bool("enableCredentials", false, "Enable the use of credentials for mongo connection")
flag.Parse()

Expand Down Expand Up @@ -69,7 +69,7 @@ func main() {
infoLog: infoLog,
errorLog: errLog,
users: &mongodb.UserModel{
C: client.Database(*mongoDatabse).Collection("users"),
C: client.Database(*mongoDatabase).Collection("users"),
},
}

Expand Down

0 comments on commit 45c5e05

Please sign in to comment.