diff --git a/apps/draupnir/src/config.ts b/apps/draupnir/src/config.ts index 896f8efc..f42a7ac4 100644 --- a/apps/draupnir/src/config.ts +++ b/apps/draupnir/src/config.ts @@ -47,7 +47,10 @@ export function getNonDefaultConfigProperties( if ("pantalaimon" in nonDefault && isConfigRecord(nonDefault.pantalaimon)) { nonDefault.pantalaimon.password = "REDACTED"; } - if ("zeroTouchDeploymentSelfLogin" in nonDefault && isConfigRecord(nonDefault.zeroTouchDeploymentSelfLogin)) { + if ( + "zeroTouchDeploymentSelfLogin" in nonDefault && + isConfigRecord(nonDefault.zeroTouchDeploymentSelfLogin) + ) { nonDefault.zeroTouchDeploymentSelfLogin.password = "REDACTED"; } if ( @@ -333,10 +336,11 @@ function getConfigMeta(): NonNullable { process.argv, "--pantalaimon-password-path" ), - isZeroTouchDeploymentSelfLoginPasswordOptionUsed: isCommandLineOptionPresent( - process.argv, - "--zero-touch-deployment-self-login-password-path" - ), + isZeroTouchDeploymentSelfLoginPasswordOptionUsed: + isCommandLineOptionPresent( + process.argv, + "--zero-touch-deployment-self-login-password-path" + ), isHttpAntispamAuthorizationPathOptionUsed: isCommandLineOptionPresent( process.argv, "--http-antispam-authorization-path" diff --git a/apps/draupnir/test/unit/zeroTouchDeploymentSelfLoginTest.ts b/apps/draupnir/test/unit/zeroTouchDeploymentSelfLoginTest.ts index 0d6e890d..adf8de31 100644 --- a/apps/draupnir/test/unit/zeroTouchDeploymentSelfLoginTest.ts +++ b/apps/draupnir/test/unit/zeroTouchDeploymentSelfLoginTest.ts @@ -18,10 +18,7 @@ describe("zeroTouchDeploymentSelfLogin", function () { username: "bot-user", password: "bot-password", }, - } satisfies Pick< - IConfig, - "homeserverUrl" | "zeroTouchDeploymentSelfLogin" - >; + } satisfies Pick; const storage: IStorageProvider = { setSyncToken() {}, getSyncToken() {