Skip to content

Commit 45c5e05

Browse files
authored
Merge pull request #25 from xpume/main
fix typo
2 parents d05c94f + a925e32 commit 45c5e05

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

bookings/cmd/app/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ func main() {
2626
serverAddr := flag.String("serverAddr", "", "HTTP server network address")
2727
serverPort := flag.Int("serverPort", 4000, "HTTP server network port")
2828
mongoURI := flag.String("mongoURI", "mongodb://localhost:27017", "Database hostname url")
29-
mongoDatabse := flag.String("mongoDatabse", "bookings", "Database name")
29+
mongoDatabase := flag.String("mongoDatabase", "bookings", "Database name")
3030
enableCredentials := flag.Bool("enableCredentials", false, "Enable the use of credentials for mongo connection")
3131
flag.Parse()
3232

@@ -69,7 +69,7 @@ func main() {
6969
infoLog: infoLog,
7070
errorLog: errLog,
7171
bookings: &mongodb.BookingModel{
72-
C: client.Database(*mongoDatabse).Collection("bookings"),
72+
C: client.Database(*mongoDatabase).Collection("bookings"),
7373
},
7474
}
7575

movies/cmd/app/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ func main() {
2626
serverAddr := flag.String("serverAddr", "", "HTTP server network address")
2727
serverPort := flag.Int("serverPort", 4000, "HTTP server network port")
2828
mongoURI := flag.String("mongoURI", "mongodb://localhost:27017", "Database hostname url")
29-
mongoDatabse := flag.String("mongoDatabse", "movies", "Database name")
29+
mongoDatabase := flag.String("mongoDatabase", "movies", "Database name")
3030
enableCredentials := flag.Bool("enableCredentials", false, "Enable the use of credentials for mongo connection")
3131
flag.Parse()
3232

@@ -69,7 +69,7 @@ func main() {
6969
infoLog: infoLog,
7070
errorLog: errLog,
7171
movies: &mongodb.MovieModel{
72-
C: client.Database(*mongoDatabse).Collection("movies"),
72+
C: client.Database(*mongoDatabase).Collection("movies"),
7373
},
7474
}
7575

showtimes/cmd/app/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ func main() {
2626
serverAddr := flag.String("serverAddr", "", "HTTP server network address")
2727
serverPort := flag.Int("serverPort", 4000, "HTTP server network port")
2828
mongoURI := flag.String("mongoURI", "mongodb://localhost:27017", "Database hostname url")
29-
mongoDatabse := flag.String("mongoDatabse", "showtimes", "Database name")
29+
mongoDatabase := flag.String("mongoDatabase", "showtimes", "Database name")
3030
enableCredentials := flag.Bool("enableCredentials", false, "Enable the use of credentials for mongo connection")
3131
flag.Parse()
3232

@@ -69,7 +69,7 @@ func main() {
6969
infoLog: infoLog,
7070
errorLog: errLog,
7171
showtimes: &mongodb.ShowTimeModel{
72-
C: client.Database(*mongoDatabse).Collection("showtimes"),
72+
C: client.Database(*mongoDatabase).Collection("showtimes"),
7373
},
7474
}
7575

users/cmd/app/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ func main() {
2626
serverAddr := flag.String("serverAddr", "", "HTTP server network address")
2727
serverPort := flag.Int("serverPort", 4000, "HTTP server network port")
2828
mongoURI := flag.String("mongoURI", "mongodb://localhost:27017", "Database hostname url")
29-
mongoDatabse := flag.String("mongoDatabse", "users", "Database name")
29+
mongoDatabase := flag.String("mongoDatabase", "users", "Database name")
3030
enableCredentials := flag.Bool("enableCredentials", false, "Enable the use of credentials for mongo connection")
3131
flag.Parse()
3232

@@ -69,7 +69,7 @@ func main() {
6969
infoLog: infoLog,
7070
errorLog: errLog,
7171
users: &mongodb.UserModel{
72-
C: client.Database(*mongoDatabse).Collection("users"),
72+
C: client.Database(*mongoDatabase).Collection("users"),
7373
},
7474
}
7575

0 commit comments

Comments
 (0)