Skip to content

Commit f78446f

Browse files
committed
fix(SA): set bffPort from APIPort if null
1 parent ed01708 commit f78446f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

APP/ogree_app_backend/tenant.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,12 +217,13 @@ func dockerCreateTenant(newTenant tenant) string {
217217

218218
// Default values, empty vars not accepted on docker compose
219219
newTenant.BffApiListFile = "./bff_api_list.json"
220-
newTenant.BffPort = newTenant.ApiPort
220+
221221
if newTenant.HasBff {
222222
args = append(args, "--profile")
223223
args = append(args, "arango")
224224
if newTenant.BffPort == "" {
225225
// Set API Port to BFF Port + 1
226+
newTenant.BffPort = newTenant.ApiPort
226227
port, _ := strconv.Atoi(newTenant.ApiPort)
227228
newTenant.ApiPort = strconv.Itoa(port + 1)
228229
}

0 commit comments

Comments
 (0)