fixes organisation logo not showing

This commit is contained in:
Peter Clement 2021-08-18 00:02:17 +01:00
parent c3a6e13103
commit 461311bb06
2 changed files with 6 additions and 2 deletions

View File

@ -1,5 +1,5 @@
<script>
import { goto, beforeUrlChange } from "@roxi/routify"
import { goto } from "@roxi/routify"
import { Button, Heading, Body, Divider, Layout, Modal } from "@budibase/bbui"
import { datasources, integrations, queries, tables } from "stores/backend"
import { notifications } from "@budibase/bbui"

View File

@ -37,7 +37,11 @@
async function uploadLogo(file) {
let data = new FormData()
data.append("file", file)
const res = await post("/api/admin/configs/upload/settings/logo", data, {})
const res = await post(
"/api/admin/configs/upload/settings/logoUrl",
data,
{}
)
return await res.json()
}