Fixed some new errors. Cleaned up console logs

This commit is contained in:
2024-10-21 10:49:20 -05:00
parent 77481b4ac4
commit 8b9cbdfc0f
5 changed files with 7 additions and 12 deletions

View File

@ -100,7 +100,7 @@ export const updateProfilePicture = async (userId: number, pfpUrl: string) => {
export const checkRelationshipStatus = async (userId: number) => {
try {
const apiUrl = `${process.env.EXPO_PUBLIC_API_URL}/api/users/checkRelationship`;
const apiUrl = `${process.env.EXPO_PUBLIC_API_URL}/api/relationships/checkStatus`;
const response = await fetch((apiUrl + `?userId=${userId}`), {
headers: {
'x-api-key': process.env.EXPO_PUBLIC_API_KEY ?? '',
@ -190,5 +190,4 @@ export const sendRelationshipRequest = async (userId: number, targetUserId: numb
console.error('Error sending Relationship request:', error);
throw error;
}
};