Commit f0633730 authored by Benjamin Bouvier's avatar Benjamin Bouvier
Browse files

Fixes #449: Don't raise an error when importing an unknown favorite account;

parent 13861c9a
......@@ -374,7 +374,8 @@ module.exports.import = async function(req, res) {
if (setting.name === 'defaultAccountId') {
if (typeof accountMap[setting.value] === 'undefined') {
throw new KError(`unknown default account id: ${setting.value}`, 400);
log.warn(`unknown default account id: ${setting.value}, skipping.`);
continue;
}
setting.value = accountMap[setting.value];
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment