Skip to content

Commit cae769e

Browse files
committed
Update default storage structure
1 parent 6d22c88 commit cae769e

16 files changed

+5
-5
lines changed
-148 Bytes
Binary file not shown.
150 Bytes
Binary file not shown.

backup/cinema/movies.metadata.json.gz

-147 Bytes
Binary file not shown.
File renamed without changes.
147 Bytes
Binary file not shown.
-151 Bytes
Binary file not shown.
148 Bytes
Binary file not shown.

backup/cinema/users.metadata.json.gz

-146 Bytes
Binary file not shown.
File renamed without changes.
147 Bytes
Binary file not shown.

bookings/cmd/app/main.go

+1-1
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", "cinema", "Database name")
29+
mongoDatabse := flag.String("mongoDatabse", "bookings", "Database name")
3030
enableCredentials := flag.Bool("enableCredentials", false, "Enable the use of credentials for mongo connection")
3131
flag.Parse()
3232

movies/cmd/app/main.go

+1-1
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", "cinema", "Database name")
29+
mongoDatabse := flag.String("mongoDatabse", "movies", "Database name")
3030
enableCredentials := flag.Bool("enableCredentials", false, "Enable the use of credentials for mongo connection")
3131
flag.Parse()
3232

showtimes/cmd/app/main.go

+2-2
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", "cinema", "Database name")
29+
mongoDatabse := flag.String("mongoDatabse", "showtimes", "Database name")
3030
enableCredentials := flag.Bool("enableCredentials", false, "Enable the use of credentials for mongo connection")
3131
flag.Parse()
3232

@@ -50,7 +50,7 @@ func main() {
5050
}
5151
ctx, cancel := context.WithTimeout(context.Background(), 20*time.Second)
5252
defer cancel()
53-
53+
5454
err = client.Connect(ctx)
5555
if err != nil {
5656
errLog.Fatal(err)

users/cmd/app/main.go

+1-1
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", "cinema", "Database name")
29+
mongoDatabse := flag.String("mongoDatabse", "users", "Database name")
3030
enableCredentials := flag.Bool("enableCredentials", false, "Enable the use of credentials for mongo connection")
3131
flag.Parse()
3232

0 commit comments

Comments
 (0)