misc: code rabbit

This commit is contained in:
Sheen Capadngan
2025-04-09 02:10:45 +08:00
parent 038f43b769
commit 06715b1b58
2 changed files with 3 additions and 3 deletions

View File

@@ -46,8 +46,8 @@ export const getCamundaConnectionAccessToken = async (
) => {
const { clientSecret, clientId, accessToken, expiresAt } = credentials;
// get new token if less than 10 minutes from expiry
if (Date.now() < expiresAt - 10_000) {
// get new token if less than 30 seconds from expiry
if (Date.now() < expiresAt - 30_000) {
return accessToken;
}

View File

@@ -13,7 +13,7 @@ export const CamundaSyncReviewFields = () => {
<>
<GenericFieldLabel label="Secret Scope">{scope}</GenericFieldLabel>
<GenericFieldLabel label="Cluster">
{clusterName} (uuid:{clusterUUID})
{clusterName} (id:{clusterUUID})
</GenericFieldLabel>
</>
);