Skip to content

Commit fac8dd6

Browse files
committed
Rename deploymentID to environmentId
1 parent c3068a6 commit fac8dd6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

server/api-service/lowcoder-infra/src/main/java/org/lowcoder/infra/event/AbstractEvent.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public abstract class AbstractEvent implements LowcoderEvent
2020
private final String ipAddress;
2121
protected Map<String, Object> details;
2222
@Setter
23-
private static String deploymentID;
23+
private static String environmentID;
2424

2525
public Map<String, Object> details()
2626
{
@@ -36,7 +36,7 @@ public B detail(String name, String value)
3636
details = new HashMap<>();
3737
}
3838
this.details.put(name, value);
39-
this.details.put("deploymentID", deploymentID);
39+
this.details.put("environmentId", environmentID);
4040
return self();
4141
}
4242
}
@@ -55,6 +55,6 @@ public void populateDetails() {
5555
}
5656

5757
}
58-
details.put("deploymentID", deploymentID);
58+
details.put("environmentId", environmentID);
5959
}
6060
}

server/api-service/lowcoder-server/src/main/java/org/lowcoder/runner/eventlistener/AppEventListener.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@ public void onApplicationEvent(ApplicationReadyEvent event) {
3131
);
3232
log.info("check BizError duplicates: {}", BizError.values().length);
3333
String deploymentId = (String)(serverConfigRepository.findByKey("deployment.id").map(ServerConfig::getValue).switchIfEmpty(Mono.just("")).block());
34-
AbstractEvent.setDeploymentID(deploymentId);
34+
AbstractEvent.setEnvironmentID(deploymentId);
3535
}
3636
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy