Fix formatting

This commit is contained in:
2026-01-11 15:17:58 -06:00
parent 7399cbe785
commit 4a4dc11aa4
4 changed files with 25 additions and 21 deletions

View File

@@ -1,8 +1,8 @@
// add-user.ts
// Management command to create users from the command line
import { pool, PostgresAuthStore } from "../database";
import { hashPassword } from "../auth/password";
import { PostgresAuthStore, pool } from "../database";
async function main(): Promise<void> {
const args = process.argv.slice(2);
@@ -51,7 +51,9 @@ async function main(): Promise<void> {
// Optionally activate user immediately
if (makeActive) {
await store.updateUserEmailVerified(user.id);
console.log(`Created and activated user: ${user.email} (${user.id})`);
console.log(
`Created and activated user: ${user.email} (${user.id})`,
);
} else {
console.log(`Created user: ${user.email} (${user.id})`);
console.log(" Status: pending (use --active to create as active)");