Fix fetch settings SS

This commit is contained in:
Weves 2024-03-31 23:49:49 -07:00 committed by Chris Weaver
parent 5b8cdd4eee
commit 0b0fc785a1

View File

@ -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();
}