projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update code to remove users in tournament DB as well
[vchess.git]
/
server
/
models
/
Variant.js
diff --git
a/server/models/Variant.js
b/server/models/Variant.js
index
d991107
..
d01d2a2
100644
(file)
--- a/
server/models/Variant.js
+++ b/
server/models/Variant.js
@@
-7,19
+7,19
@@
const db = require("../utils/database");
* description: varchar
*/
* description: varchar
*/
-const VariantModel =
-{
- getAll: function(callback)
- {
+const VariantModel = {
+
+ getAll: function(callback) {
db.serialize(function() {
const query =
"SELECT * " +
"FROM Variants";
db.all(query, callback);
});
db.serialize(function() {
const query =
"SELECT * " +
"FROM Variants";
db.all(query, callback);
});
- }
,
+ }
//create, update, delete: directly in DB
//create, update, delete: directly in DB
-}
+
+};
module.exports = VariantModel;
module.exports = VariantModel;