projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
More verbose instructions for creating sqlite database
[vchess.git]
/
server
/
models
/
Variant.js
diff --git
a/server/models/Variant.js
b/server/models/Variant.js
index
dccc89b
..
85abf5a
100644
(file)
--- a/
server/models/Variant.js
+++ b/
server/models/Variant.js
@@
-1,4
+1,4
@@
-
var
db = require("../utils/database");
+
const
db = require("../utils/database");
/*
* Structure:
/*
* Structure:
@@
-7,10
+7,8
@@
var db = require("../utils/database");
* description: varchar
*/
* description: varchar
*/
-const VariantModel =
-{
- getAll: function(callback)
- {
+const VariantModel = {
+ getAll: function(callback) {
db.serialize(function() {
const query =
"SELECT * " +
db.serialize(function() {
const query =
"SELECT * " +