Fixed some new errors. Cleaned up console logs
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
};
|
||||
|
Reference in New Issue
Block a user