Skip to content

Commit 198b5c3

Browse files
authored
Merge pull request #1456 from lowcoder-org/environment
Rename deploymentID to environmentId
2 parents 10c17e2 + fac8dd6 commit 198b5c3

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

+3-3
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

+1-1
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)