Skip to content

Commit

Permalink
Update default storage structure
Browse files Browse the repository at this point in the history
  • Loading branch information
mmorejon committed Jan 18, 2021
1 parent 6d22c88 commit cae769e
Show file tree
Hide file tree
Showing 16 changed files with 5 additions and 5 deletions.
Binary file removed backup/cinema/bookings.metadata.json.gz
Binary file not shown.
File renamed without changes.
Binary file added backup/cinema/bookings/bookings.metadata.json.gz
Binary file not shown.
Binary file removed backup/cinema/movies.metadata.json.gz
Binary file not shown.
File renamed without changes.
Binary file added backup/cinema/movies/movies.metadata.json.gz
Binary file not shown.
Binary file removed backup/cinema/showtimes.metadata.json.gz
Binary file not shown.
File renamed without changes.
Binary file added backup/cinema/showtimes/showtimes.metadata.json.gz
Binary file not shown.
Binary file removed backup/cinema/users.metadata.json.gz
Binary file not shown.
File renamed without changes.
Binary file added backup/cinema/users/users.metadata.json.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion 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", "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()

Expand Down
2 changes: 1 addition & 1 deletion 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", "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()

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", "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()

Expand All @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion 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", "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()

Expand Down

0 comments on commit cae769e

Please sign in to comment.