Skip to content

Firefly III: a personal finances manager

Return the new account from firstOrCreateEncrypted

Balazs Varkonyi67fafdeef743
diff --git a/app/Models/Account.php b/app/Models/Account.php
index d366a85c14..e95240cdbb 100644
--- a/app/Models/Account.php
+++ b/app/Models/Account.php
@@ -54,6 +54,7 @@ class Account extends Model
App::abort(500, 'Could not create new account with data: ' . json_encode($fields));
}
+ return $account;
}