projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Attempt to get rid of 'zombie Websocket' error
[vchess.git]
/
server
/
models
/
Variant.js
diff --git
a/server/models/Variant.js
b/server/models/Variant.js
index
d991107
..
85abf5a
100644
(file)
--- a/
server/models/Variant.js
+++ b/
server/models/Variant.js
@@
-7,10
+7,8
@@
const db = require("../utils/database");
* description: varchar
*/
-const VariantModel =
-{
- getAll: function(callback)
- {
+const VariantModel = {
+ getAll: function(callback) {
db.serialize(function() {
const query =
"SELECT * " +