fix
This commit is contained in:
@@ -156,7 +156,7 @@ async function seedInitialAdmin() {
|
|||||||
* bcryptjs is already used by the auth route in the MVP.
|
* bcryptjs is already used by the auth route in the MVP.
|
||||||
* Dynamic import avoids requiring it before DB startup.
|
* Dynamic import avoids requiring it before DB startup.
|
||||||
*/
|
*/
|
||||||
const bcrypt = await import('bcryptjs');
|
const { default: bcrypt } = await import('bcryptjs');
|
||||||
const passwordHash = await bcrypt.hash(adminPassword, 12);
|
const passwordHash = await bcrypt.hash(adminPassword, 12);
|
||||||
|
|
||||||
await pool.query(
|
await pool.query(
|
||||||
|
|||||||
Reference in New Issue
Block a user