diff --git a/backup/cinema/bookings.metadata.json.gz b/backup/cinema/bookings.metadata.json.gz deleted file mode 100644 index 6c7772a48..000000000 Binary files a/backup/cinema/bookings.metadata.json.gz and /dev/null differ diff --git a/backup/cinema/bookings.bson.gz b/backup/cinema/bookings/bookings.bson.gz similarity index 100% rename from backup/cinema/bookings.bson.gz rename to backup/cinema/bookings/bookings.bson.gz diff --git a/backup/cinema/bookings/bookings.metadata.json.gz b/backup/cinema/bookings/bookings.metadata.json.gz new file mode 100644 index 000000000..71f96fd60 Binary files /dev/null and b/backup/cinema/bookings/bookings.metadata.json.gz differ diff --git a/backup/cinema/movies.metadata.json.gz b/backup/cinema/movies.metadata.json.gz deleted file mode 100644 index ddb92914b..000000000 Binary files a/backup/cinema/movies.metadata.json.gz and /dev/null differ diff --git a/backup/cinema/movies.bson.gz b/backup/cinema/movies/movies.bson.gz similarity index 100% rename from backup/cinema/movies.bson.gz rename to backup/cinema/movies/movies.bson.gz diff --git a/backup/cinema/movies/movies.metadata.json.gz b/backup/cinema/movies/movies.metadata.json.gz new file mode 100644 index 000000000..0f5d16c13 Binary files /dev/null and b/backup/cinema/movies/movies.metadata.json.gz differ diff --git a/backup/cinema/showtimes.metadata.json.gz b/backup/cinema/showtimes.metadata.json.gz deleted file mode 100644 index cbbd44c8a..000000000 Binary files a/backup/cinema/showtimes.metadata.json.gz and /dev/null differ diff --git a/backup/cinema/showtimes.bson.gz b/backup/cinema/showtimes/showtimes.bson.gz similarity index 100% rename from backup/cinema/showtimes.bson.gz rename to backup/cinema/showtimes/showtimes.bson.gz diff --git a/backup/cinema/showtimes/showtimes.metadata.json.gz b/backup/cinema/showtimes/showtimes.metadata.json.gz new file mode 100644 index 000000000..61d8b55c2 Binary files /dev/null and b/backup/cinema/showtimes/showtimes.metadata.json.gz differ diff --git a/backup/cinema/users.metadata.json.gz b/backup/cinema/users.metadata.json.gz deleted file mode 100644 index bffeac2e8..000000000 Binary files a/backup/cinema/users.metadata.json.gz and /dev/null differ diff --git a/backup/cinema/users.bson.gz b/backup/cinema/users/users.bson.gz similarity index 100% rename from backup/cinema/users.bson.gz rename to backup/cinema/users/users.bson.gz diff --git a/backup/cinema/users/users.metadata.json.gz b/backup/cinema/users/users.metadata.json.gz new file mode 100644 index 000000000..fee46a09d Binary files /dev/null and b/backup/cinema/users/users.metadata.json.gz differ diff --git a/bookings/cmd/app/main.go b/bookings/cmd/app/main.go index be39e8a7e..db88e8e41 100644 --- a/bookings/cmd/app/main.go +++ b/bookings/cmd/app/main.go @@ -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", "cinema", "Database name") + mongoDatabse := flag.String("mongoDatabse", "bookings", "Database name") enableCredentials := flag.Bool("enableCredentials", false, "Enable the use of credentials for mongo connection") flag.Parse() diff --git a/movies/cmd/app/main.go b/movies/cmd/app/main.go index 4804e7588..95724cff0 100644 --- a/movies/cmd/app/main.go +++ b/movies/cmd/app/main.go @@ -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", "cinema", "Database name") + mongoDatabse := flag.String("mongoDatabse", "movies", "Database name") enableCredentials := flag.Bool("enableCredentials", false, "Enable the use of credentials for mongo connection") flag.Parse() diff --git a/showtimes/cmd/app/main.go b/showtimes/cmd/app/main.go index 3831fbfb0..e565c50bc 100644 --- a/showtimes/cmd/app/main.go +++ b/showtimes/cmd/app/main.go @@ -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", "cinema", "Database name") + mongoDatabse := flag.String("mongoDatabse", "showtimes", "Database name") enableCredentials := flag.Bool("enableCredentials", false, "Enable the use of credentials for mongo connection") flag.Parse() @@ -50,7 +50,7 @@ func main() { } ctx, cancel := context.WithTimeout(context.Background(), 20*time.Second) defer cancel() - + err = client.Connect(ctx) if err != nil { errLog.Fatal(err) diff --git a/users/cmd/app/main.go b/users/cmd/app/main.go index 7bc57147b..2d9eefa0d 100644 --- a/users/cmd/app/main.go +++ b/users/cmd/app/main.go @@ -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", "cinema", "Database name") + mongoDatabse := flag.String("mongoDatabse", "users", "Database name") enableCredentials := flag.Bool("enableCredentials", false, "Enable the use of credentials for mongo connection") flag.Parse()