Fix provisioning API including jid field at the wrong time

This commit is contained in:
Tulir Asokan 2021-11-01 18:45:58 +02:00
parent bcfe674fa3
commit 38dd02e788
2 changed files with 2 additions and 2 deletions

View file

@ -74,7 +74,7 @@ build docker amd64:
bridge: env.BEEPER_BRIDGE_TYPE, bridge: env.BEEPER_BRIDGE_TYPE,
image: "\(env.CI_REGISTRY_IMAGE):\(env.CI_COMMIT_SHA)-amd64", image: "\(env.CI_REGISTRY_IMAGE):\(env.CI_COMMIT_SHA)-amd64",
channel: "INTERNAL", channel: "INTERNAL",
deployNext: true deployNext: false
} }
' | curl "$BEEPER_PROD_ADMIN_API_URL" -H "Content-Type: application/json" -d @- ' | curl "$BEEPER_PROD_ADMIN_API_URL" -H "Content-Type: application/json" -d @-
fi fi

View file

@ -178,7 +178,7 @@ func (prov *ProvisioningAPI) Ping(w http.ResponseWriter, r *http.Request) {
"management_room": user.ManagementRoom, "management_room": user.ManagementRoom,
"conn": nil, "conn": nil,
} }
if user.JID.IsEmpty() { if !user.JID.IsEmpty() {
wa["jid"] = user.JID.String() wa["jid"] = user.JID.String()
} }
if user.Client != nil { if user.Client != nil {