Skip to content

Commit

Permalink
🔧 修复由于 mail init 字段导致 mailContext 字段初始化失败的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
adlered committed Dec 29, 2019
1 parent 9cc4df3 commit 26404b1
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/main/java/org/b3log/solo/service/InitService.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
import org.json.JSONObject;

import java.sql.Connection;
import java.sql.SQLIntegrityConstraintViolationException;
import java.text.ParseException;
import java.util.List;

Expand Down Expand Up @@ -720,12 +721,6 @@ private void initOptions(final JSONObject requestJSONObject) throws Exception {
mailPasswordOpt.put(Option.OPTION_VALUE, "");
optionRepository.add(mailPasswordOpt);

final JSONObject mailUserContextOpt = new JSONObject();
mailUserContextOpt.put(Keys.OBJECT_ID, Option.ID_C_MAIL_USER_CONTEXT);
mailUserContextOpt.put(Option.OPTION_CATEGORY, Option.CATEGORY_C_PREFERENCE);
mailUserContextOpt.put(Option.OPTION_VALUE, "");
optionRepository.add(mailUserContextOpt);

LOGGER.info("Initialized preference");
}
}

0 comments on commit 26404b1

Please sign in to comment.