modules/purchaseOrderApprovals/database/createUser.js
Function createUser
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function createUser(user) {
const database = sqlite(databasePath);
const userRecord = database
.prepare(`select isActive
from Users