Skip to content

Commit

Permalink
#129, #92, add missing import code for new config vars POST_METADATA_…
Browse files Browse the repository at this point in the history
…MAX_RECORD_PER_RUN, POST_METADATA_MAX_RECORD_PER_RUN and COMMENT_ENABLED when importing entire json obj
  • Loading branch information
thrize committed Apr 15, 2018
1 parent f2da0e3 commit d535135
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -1239,6 +1239,18 @@ app.post("/edit-config", bodyParser.urlencoded({extended: false}), function(req,
configVars.MIN_KEYWORD_FREQ = newConfigVars.MIN_KEYWORD_FREQ;
change = true;
}
if (newConfigVars.POST_METADATA_MAX_RECORD_PER_RUN) {
configVars.POST_METADATA_MAX_RECORD_PER_RUN = newConfigVars.POST_METADATA_MAX_RECORD_PER_RUN;
change = true;
}
if (newConfigVars.POST_METADATA_MAX_RECORD_PER_RUN) {
configVars.POST_METADATA_MAX_RECORD_PER_RUN = newConfigVars.POST_METADATA_MAX_RECORD_PER_RUN;
change = true;
}
if (newConfigVars.COMMENT_ENABLED) {
configVars.COMMENT_ENABLED = newConfigVars.COMMENT_ENABLED;
change = true;
}
var html_title = "<h3 class=\"sub-header\">" + (change ? "Updated config vars" : "Nothing to update!") + "</h3>";
if (change) {
lib.updateConfigVars(configVars, function(err) {
Expand Down

0 comments on commit d535135

Please sign in to comment.