From 1e4871728579137747d3f041cc61250b2c869257 Mon Sep 17 00:00:00 2001 From: Ryderjj89 Date: Wed, 1 Oct 2025 18:36:45 -0400 Subject: [PATCH] Fix bcryptjs import in database.ts to use static import --- server/utils/database.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/utils/database.ts b/server/utils/database.ts index 6fd861e..e60f1f6 100644 --- a/server/utils/database.ts +++ b/server/utils/database.ts @@ -2,6 +2,7 @@ import Database from 'better-sqlite3' import { join } from 'path' import { existsSync, mkdirSync } from 'fs' import { dirname } from 'path' +import bcrypt from 'bcryptjs' let db: Database.Database @@ -53,7 +54,6 @@ async function initializeDatabase(db: Database.Database) { // Create default admin user if it doesn't exist const config = useRuntimeConfig() - const bcrypt = await import('bcryptjs') const saltRounds = 10 const passwordHash = await bcrypt.hash(config.adminPassword, saltRounds)