fix: onboarding loop (#775)

* fix: dashboard workspace activity mutation

* fix: onboarding loop
This commit is contained in:
Aaryan Khandelwal 2023-04-11 12:25:21 +05:30 committed by GitHub
parent 22c1f6f8e2
commit 725c9375ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 33 additions and 6 deletions

View file

@ -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) => {