Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 0 additions & 36 deletions app/api/account/add_artist/route.tsx

This file was deleted.

122 changes: 0 additions & 122 deletions app/api/account/route.tsx

This file was deleted.

78 changes: 0 additions & 78 deletions app/api/account/update/route.tsx

This file was deleted.

4 changes: 2 additions & 2 deletions hooks/useOrgSettings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ const useOrgSettings = (orgId: string | null) => {

setIsSaving(true);
try {
const response = await fetch("/api/account/update", {
method: "POST",
const response = await fetch(`${NEW_API_BASE_URL}/api/accounts`, {
method: "PATCH",
body: JSON.stringify({
accountId: orgId,
name,
Expand Down
7 changes: 4 additions & 3 deletions hooks/useUser.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { uploadFile } from "@/lib/arweave/uploadFile";
import { useAccount } from "wagmi";
import { toast } from "sonner";
import { AccountWithDetails } from "@/lib/supabase/accounts/getAccountWithDetails";
import { NEW_API_BASE_URL } from "@/lib/consts";

const useUser = () => {
const { login, user, logout } = usePrivy();
Expand Down Expand Up @@ -63,8 +64,8 @@ const useUser = () => {

setUpdating(true);
try {
const response = await fetch("/api/account/update", {
method: "POST",
const response = await fetch(`${NEW_API_BASE_URL}/api/accounts`, {
method: "PATCH",
body: JSON.stringify({
instruction,
organization,
Expand Down Expand Up @@ -129,7 +130,7 @@ const useUser = () => {
"Content-Type": "application/json",
},
};
const response = await fetch("/api/account", config);
const response = await fetch(`${NEW_API_BASE_URL}/api/accounts`, config);

if (!response.ok) {
throw new Error(
Expand Down
Loading