使用openai进行了代码review

This commit is contained in:
2026-02-24 11:33:08 +08:00
parent 9efdf060f5
commit 0c97f02e51
32 changed files with 1499 additions and 969 deletions
+3 -2
View File
@@ -13,8 +13,9 @@ async function hashPassword(password) {
}
async function main() {
console.log("Resetting password to 'admin'...");
const hashedPassword = await hashPassword("admin");
const password = process.argv[2] || process.env.INIT_DEFAULT_PASSWORD || "admin";
console.log("Resetting password...");
const hashedPassword = await hashPassword(password);
const settings = await prisma.globalSettings.findFirst();
if (settings) {