Commit 715c11f1 authored by Nicolas Frandeboeuf's avatar Nicolas Frandeboeuf Committed by Benjamin Bouvier

Fix m16 migration: bankAccount copied to clone

parent 030a22e3
......@@ -508,6 +508,7 @@ let migrations = [
if (cloneOperation) {
let newOp = op.clone();
newOp.accountId = account.id;
delete newOp.bankAccount;
newOp = await Transactions.create(userId, newOp);
newOperations.push(newOp);
} else {
......@@ -549,6 +550,7 @@ let migrations = [
if (cloneAlert) {
let newAlert = alert.clone();
newAlert.accountId = account.id;
delete newAlert.bankAccount;
newAlert = await Alerts.create(userId, newAlert);
newAlerts.push(newAlert);
} else {
......
Markdown is supported
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