mirror of
https://github.com/kaythomas0/noisedash.git
synced 2025-11-16 04:58:02 +00:00
Lint server, remove body-parser
This commit is contained in:
@@ -1,15 +1,7 @@
|
||||
const db = require('../db');
|
||||
const db = require('../db')
|
||||
|
||||
module.exports = function() {
|
||||
|
||||
db.serialize(function() {
|
||||
db.run("CREATE TABLE IF NOT EXISTS users ( \
|
||||
username TEXT UNIQUE, \
|
||||
hashed_password BLOB, \
|
||||
salt BLOB, \
|
||||
name TEXT \
|
||||
)");
|
||||
});
|
||||
|
||||
//db.close();
|
||||
};
|
||||
module.exports = function () {
|
||||
db.serialize(function () {
|
||||
db.run('CREATE TABLE IF NOT EXISTS users ( username TEXT UNIQUE, hashed_password BLOB, salt BLOB, name TEXT)')
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user