Skip to content

Commit

Permalink
chore: Format code.
Browse files Browse the repository at this point in the history
  • Loading branch information
imterah committed May 18, 2024
1 parent 41013f4 commit 9d7c24a
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 9 deletions.
13 changes: 8 additions & 5 deletions api/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,19 +57,22 @@ const backends: Record<number, BackendBaseClass> = {};
const loggerEnv = {
development: {
transport: {
target: 'pino-pretty',
target: "pino-pretty",
options: {
translateTime: 'HH:MM:ss Z',
ignore: 'pid,hostname,time',
translateTime: "HH:MM:ss Z",
ignore: "pid,hostname,time",
},
},
},
production: true,
test: false,
}
};

const fastify = Fastify({
logger: (process.env.NODE_ENV != "production" ? loggerEnv.development : loggerEnv.production),
logger:
process.env.NODE_ENV == "production"
? loggerEnv.production
: loggerEnv.development,
trustProxy: Boolean(process.env.IS_BEHIND_PROXY),
});

Expand Down
7 changes: 5 additions & 2 deletions lom/src/commands/users.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ export async function run(
"Asks for a password. Hides output",
);

addCommand.option("-s, --service-account, --service", "Turns the user into a service account");
addCommand.option(
"-s, --service-account, --service",
"Turns the user into a service account",
);

addCommand.action(
async (
Expand Down Expand Up @@ -93,7 +96,7 @@ export async function run(
email,
password,

allowUnsafeGlobalTokens: options.isServiceAccount
allowUnsafeGlobalTokens: options.isServiceAccount,
});

if (response.status != 200) {
Expand Down
2 changes: 1 addition & 1 deletion lom/src/copyID.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export async function runCopyID(
stream.write(
"Hey there! I think you're using ssh-copy-id. If this is an error, you may close this terminal.\n",
);

stream.write("Please wait...\n");

const keyData = await readFromKeyboard(stream, true);
Expand Down
2 changes: 1 addition & 1 deletion lom/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { readFile, writeFile, mkdir } from "node:fs/promises";
import { format } from "node:util";
import { timingSafeEqual } from "node:crypto";
import { format } from "node:util";

import parseArgsStringToArgv from "string-argv";
import baseAxios from "axios";
Expand Down

0 comments on commit 9d7c24a

Please sign in to comment.