fix: my profile activity endpoint (#1983)
* fix: my profile activity endpoint * chore: update service name
This commit is contained in:
parent
6e7701d854
commit
485e56bcdf
2 changed files with 14 additions and 15 deletions
|
|
@ -101,8 +101,8 @@ class UserService extends APIService {
|
|||
});
|
||||
}
|
||||
|
||||
async getUserActivity(): Promise<IUserActivityResponse> {
|
||||
return this.get("/api/users/activities/")
|
||||
async getUserWorkspaceActivity(workspaceSlug: string): Promise<IUserActivityResponse> {
|
||||
return this.get(`/api/users/workspaces/${workspaceSlug}/activities/`)
|
||||
.then((response) => response?.data)
|
||||
.catch((error) => {
|
||||
throw error?.response?.data;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue