Skip to content

Commit

Permalink
fix(install): error with fresh database
Browse files Browse the repository at this point in the history
  • Loading branch information
polonel committed Nov 21, 2021
1 parent 0d01563 commit 517e3ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/controllers/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ installController.install = function (req, res) {
SettingsSchema.create(
{
name: 'es:enable',
value: eEnabled
value: typeof eEnabled === 'undefined' ? false : eEnabled
},
done
)
Expand Down
4 changes: 2 additions & 2 deletions src/settings/defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ function checkPriorities (callback) {
)
}

function addedDefaultPrioritesToTicketTypes (callback) {
function addedDefaultPrioritiesToTicketTypes (callback) {
async.waterfall(
[
function (next) {
Expand Down Expand Up @@ -700,7 +700,7 @@ settingsDefaults.init = function (callback) {
return ticketPriorityDefaults(done)
},
function (done) {
return addedDefaultPrioritesToTicketTypes(done)
return addedDefaultPrioritiesToTicketTypes(done)
},
function (done) {
return checkPriorities(done)
Expand Down

0 comments on commit 517e3ab

Please sign in to comment.