rename .js to .ts and remove console.logs statements
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
"lint": "prettier --check . && eslint .",
|
||||
"test:unit": "vitest",
|
||||
"test": "npm run test:unit -- --run && npm run test:e2e",
|
||||
"init_db": "node src/init/init_db.js"
|
||||
"init_db": "npx vite-node src/init/init_db.ts"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@eslint/compat": "^1.2.9",
|
||||
|
||||
@@ -20,10 +20,6 @@ db.exec(checkInsertSQLStmt);
|
||||
|
||||
let usersSQLStmt = `SELECT * FROM USERS`;
|
||||
let SQLStatement = db.prepare(usersSQLStmt);
|
||||
console.log(`\n`, `*** Users table`);
|
||||
for (const usr of SQLStatement.iterate()) {
|
||||
console.log(`[r] ${usr.name} + ${usr.pw}`);
|
||||
}
|
||||
|
||||
// cases table
|
||||
|
||||
@@ -37,9 +33,5 @@ db.exec(createSQLStmt);
|
||||
|
||||
let casesSQLStmt = `SELECT * FROM cases`;
|
||||
SQLStatement = db.prepare(casesSQLStmt);
|
||||
console.log(`\n`, `*** Cases table`);
|
||||
for (const usr of SQLStatement.iterate()) {
|
||||
console.log(`[r] ${usr.name} + ${usr.token} + ${usr.pw}`);
|
||||
}
|
||||
|
||||
db.close();
|
||||
Reference in New Issue
Block a user