Skip to content

Commit ea50498

Browse files
committed
fix typo
1 parent d05c94f commit ea50498

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
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

0 commit comments

Comments
 (0)