Skip to content

Commit

Permalink
fix: space feed API path fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammeds1992 committed Jul 20, 2023
1 parent 5b7f2fc commit 00d91b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/restapi/src/lib/space/spaceFeed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const spaceFeed = async (options: {
const recipientWallet = await getUserDID(recipient, env);
if (!isValidETHAddress(user)) throw new Error(`Invalid address ${user}`);
const API_BASE_URL = getAPIBaseUrls(env);
const apiEndpoint = `${API_BASE_URL}/v1/chat/users/${user}/chat/${recipientWallet}`;
const apiEndpoint = `${API_BASE_URL}/v1/spaces/users/${user}/space/${recipientWallet}`;
try {
const response = await axios.get(apiEndpoint);
// If no chat between users, then returns {}
Expand Down

0 comments on commit 00d91b1

Please sign in to comment.