projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix Shinobi: no captain in hand
[vchess.git]
/
server
/
models
/
Problem.js
diff --git
a/server/models/Problem.js
b/server/models/Problem.js
index
eef4270
..
cc74006
100644
(file)
--- a/
server/models/Problem.js
+++ b/
server/models/Problem.js
@@
-12,6
+12,7
@@
const db = require("../utils/database");
*/
const ProblemModel = {
+
checkProblem: function(p) {
return (
p.id.toString().match(/^[0-9]+$/) &&
@@
-88,7
+89,8
@@
const ProblemModel = {
whereClause;
db.run(query);
});
- },
-}
+ }
+
+};
module.exports = ProblemModel;