mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-03-26 17:51:54 +01:00
Fix fetch settings SS
This commit is contained in:
parent
5b8cdd4eee
commit
0b0fc785a1
@ -1,8 +1,8 @@
|
||||
import { Settings } from "@/app/admin/settings/interfaces";
|
||||
import { buildUrl } from "./utilsSS";
|
||||
import { fetchSS } from "./utilsSS";
|
||||
|
||||
export async function getSettingsSS(): Promise<Settings | null> {
|
||||
const response = await fetch(buildUrl("/settings"));
|
||||
const response = await fetchSS("/settings");
|
||||
if (response.ok) {
|
||||
return await response.json();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user