Skip to content

Firefly III: a personal finances manager

Fix sql error, perhaps fix path.

James Cole9e038c11e9c4
diff --git a/app/Console/Commands/Correction/CorrectsGroupAccounts.php b/app/Console/Commands/Correction/CorrectsGroupAccounts.php
index c0c1a8d7aa..b445724e57 100644
--- a/app/Console/Commands/Correction/CorrectsGroupAccounts.php
+++ b/app/Console/Commands/Correction/CorrectsGroupAccounts.php
@@ -59,7 +59,7 @@ class CorrectsGroupAccounts extends Command
$groups = TransactionJournal::query() // @phpstan-ignore-line
->groupBy('transaction_group_id')
- ->havingRaw('the_count > 1')
+ ->havingRaw('COUNT(transaction_group_id) > 1')
->get([
'transaction_group_id',
DB::raw('COUNT(transaction_group_id) as the_count'),
diff --git a/resources/assets/v3/js/boot/axios.js b/resources/assets/v3/js/boot/axios.js
index 9f19aa09a5..88fa5e6c92 100644
--- a/resources/assets/v3/js/boot/axios.js
+++ b/resources/assets/v3/js/boot/axios.js
@@ -29,7 +29,7 @@ import axios from "axios";
// for use inside Vue files (Options API) through this.$axios and this.$api
-const url = "/";
+const url = "./";
const api = axios.create({ baseURL: url, withCredentials: true });
axios.defaults.withCredentials = true;