Skip to content

Commit

Permalink
Fix TS and rename env var
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigok committed Sep 21, 2023
1 parent 724f8bb commit 9e10311
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import { LICENSE_VERSION } from '../license';

type WorkspaceRegistrationData<T> = {
uniqueId: string;
deploymentFingerprintHash: string;
deploymentFingerprintVerified: boolean;
workspaceId: SettingValue;
address: SettingValue;
contactName: string;
Expand Down Expand Up @@ -56,8 +58,8 @@ export async function buildWorkspaceRegistrationData<T extends string | undefine

return {
uniqueId: stats.uniqueId,
deploymentFingerprintHash
deploymentFingerprintVerified
deploymentFingerprintHash,
deploymentFingerprintVerified,
workspaceId,
address,
contactName,
Expand Down
2 changes: 1 addition & 1 deletion apps/meteor/server/settings/misc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const verifyFingerPrint = async function () {
return;
}

if (fingerprint === process.env.EXPECTED_FINGERPRINT) {
if (process.env.AUTO_ACCEPT_FINGERPRINT === 'true') {
logger.info('Updating fingerprint as matched by env var EXPECTED_FINGERPRINT', fingerprint);
await updateFingerprint(fingerprint, true);
}
Expand Down

0 comments on commit 9e10311

Please sign in to comment.