Try and catch block for dbRebuild (#2047)
* Try and catch block for dbRebuild * Use self.log.error and not logging * Use self.log.error and not logging in SiteStorage also * Check if the rebuild is working
This commit is contained in:
parent
9a267ffcaf
commit
753396ac0c
8 changed files with 55 additions and 23 deletions
|
@ -814,6 +814,7 @@ window.initScrollable = function () {
|
|||
this.tag.find("#button-dbrebuild").off("click touchend").on("click touchend", (function(_this) {
|
||||
return function() {
|
||||
_this.wrapper.notifications.add("done-dbrebuild", "info", "Database rebuilding....");
|
||||
|
||||
_this.wrapper.ws.cmd("dbRebuild", [], function(response) {
|
||||
|
||||
if (response !== "ok") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue