fix: onboarding loop (#775)
* fix: dashboard workspace activity mutation * fix: onboarding loop
This commit is contained in:
parent
22c1f6f8e2
commit
725c9375ea
4 changed files with 33 additions and 6 deletions
|
|
@ -2,7 +2,12 @@
|
|||
import APIService from "services/api.service";
|
||||
import trackEventServices from "services/track-event.service";
|
||||
|
||||
import type { IUser, IUserActivityResponse, IUserWorkspaceDashboard } from "types";
|
||||
import type {
|
||||
ICurrentUserResponse,
|
||||
IUser,
|
||||
IUserActivityResponse,
|
||||
IUserWorkspaceDashboard,
|
||||
} from "types";
|
||||
|
||||
const { NEXT_PUBLIC_API_BASE_URL } = process.env;
|
||||
|
||||
|
|
@ -29,7 +34,7 @@ class UserService extends APIService {
|
|||
});
|
||||
}
|
||||
|
||||
async currentUser(): Promise<any> {
|
||||
async currentUser(): Promise<ICurrentUserResponse> {
|
||||
return this.get("/api/users/me/")
|
||||
.then((response) => response?.data)
|
||||
.catch((error) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue