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
@@ -46,8 +46,8 @@ export const getCamundaConnectionAccessToken = async (
) => { ) => {
const { clientSecret, clientId, accessToken, expiresAt } = credentials; const { clientSecret, clientId, accessToken, expiresAt } = credentials;
// get new token if less than 10 minutes from expiry // get new token if less than 30 seconds from expiry
if (Date.now() < expiresAt - 10_000) { if (Date.now() < expiresAt - 30_000) {
return accessToken; return accessToken;
} }
@@ -13,7 +13,7 @@ export const CamundaSyncReviewFields = () => {
<> <>
<GenericFieldLabel label="Secret Scope">{scope}</GenericFieldLabel> <GenericFieldLabel label="Secret Scope">{scope}</GenericFieldLabel>
<GenericFieldLabel label="Cluster"> <GenericFieldLabel label="Cluster">
{clusterName} (uuid:{clusterUUID}) {clusterName} (id:{clusterUUID})
</GenericFieldLabel> </GenericFieldLabel>
</> </>
); );