projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Unused code, style (cosmetics)
[vchess.git]
/
server
/
models
/
Problem.js
diff --git
a/server/models/Problem.js
b/server/models/Problem.js
index
9978d76
..
eef4270
100644
(file)
--- a/
server/models/Problem.js
+++ b/
server/models/Problem.js
@@
-81,7
+81,7
@@
const ProblemModel = {
safeRemove: function(id, uid, devs) {
db.serialize(function() {
safeRemove: function(id, uid, devs) {
db.serialize(function() {
- let whereClause = "WHERE id = " +
prob.
id;
+ let whereClause = "WHERE id = " + id;
if (!devs.includes(uid)) whereClause += " AND uid = " + uid;
const query =
"DELETE FROM Problems " +
if (!devs.includes(uid)) whereClause += " AND uid = " + uid;
const query =
"DELETE FROM Problems " +