fix: save false value to database
This commit is contained in:
parent
573f92d098
commit
5368a96d0f
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,7 @@ export default abstract class SettingHelper {
|
||||||
* @param value The value to set
|
* @param value The value to set
|
||||||
*/
|
*/
|
||||||
public static async setSetting<K extends SettingString>(key: K, value: SettingValueMapping[K]): Promise<void> {
|
public static async setSetting<K extends SettingString>(key: K, value: SettingValueMapping[K]): Promise<void> {
|
||||||
if (value === undefined || value === null || value == "") {
|
if (value === undefined || value === null || value === "") {
|
||||||
if (key != "mail.password") this.resetSetting(key);
|
if (key != "mail.password") this.resetSetting(key);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue