X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=server%2Fmodels%2FProblem.js;h=cc7400670ef8852d69b54dfcfacb3e02faba229d;hb=81b71035639a4204bd7834c9185ea961755af1cf;hp=eef4270f1b4b2c43f8eb0876af7057302bd047ad;hpb=0705a80c63aec2c60ee6a674b982f6a11d2d50bd;p=vchess.git diff --git a/server/models/Problem.js b/server/models/Problem.js index eef4270f..cc740067 100644 --- 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;