This commit is contained in:
2024-08-28 21:49:51 +02:00
parent 725fe01b69
commit 60a860d9b5

View File

@@ -1,8 +1,4 @@
<script setup> <script setup>
import axios from "axios";
const dataStore = useDataStore() const dataStore = useDataStore()
const route = useRoute() const route = useRoute()
const supabase = useSupabaseClient() const supabase = useSupabaseClient()
@@ -14,8 +10,6 @@ const bankData = ref({})
const showAlert = ref(false) const showAlert = ref(false)
const reqData = ref({}) const reqData = ref({})
const axiosBaseUrl = "https://backend.fedeo.de"
const setupPage = async () => { const setupPage = async () => {
if(route.query.ref) { if(route.query.ref) {
const {data,error} = await supabase.functions.invoke(`bankstatement_gateway`,{ const {data,error} = await supabase.functions.invoke(`bankstatement_gateway`,{
@@ -32,7 +26,6 @@ const setupPage = async () => {
} }
const checkBIC = async () => { const checkBIC = async () => {
const {data,error} = await supabase.functions.invoke(`bankstatement_gateway`,{ const {data,error} = await supabase.functions.invoke(`bankstatement_gateway`,{
body: { body: {
bic: bicBankToAdd.value, bic: bicBankToAdd.value,
@@ -40,9 +33,6 @@ const checkBIC = async () => {
} }
}) })
console.log(data)
console.log(error)
bankData.value = data bankData.value = data
showAlert.value = true showAlert.value = true
} }
@@ -68,7 +58,6 @@ const generateLink = async () => {
} }
const addAccount = async (account) => { const addAccount = async (account) => {
let accountData = { let accountData = {
accountId: account.id, accountId: account.id,
ownerName: account.owner_name, ownerName: account.owner_name,
@@ -83,12 +72,8 @@ const addAccount = async (account) => {
} else if(data) { } else if(data) {
toast.add({title: "Account erfolgreich hinzugefügt"}) toast.add({title: "Account erfolgreich hinzugefügt"})
} }
} }
setupPage() setupPage()
</script> </script>