* Moved all direct SQL statements as constants into Sql object
* Removed redundant call for HopObject.log() in Admin.update() method
This commit is contained in:
parent
499e8d97b9
commit
33ef009f20
5 changed files with 30 additions and 22 deletions
|
@ -41,8 +41,7 @@ Comment.remove = function(options) {
|
|||
}
|
||||
if (options && options.mode === "user" && options.confirm === "1") {
|
||||
var sql = new Sql;
|
||||
sql.retrieve("select id from content where site_id = $0 and creator_id = $1 \
|
||||
and prototype = 'Comment'", this.site._id, this.creator._id);
|
||||
sql.retrieve(Sql.COMMENTS, this.site._id, this.creator._id);
|
||||
sql.traverse(function() {
|
||||
Comment.remove.call(Comment.getById(this.id));
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue