fix: instance config errors

This commit is contained in:
sriram veeraghanta 2024-05-18 16:22:53 +05:30
parent 895fbcd5a7
commit 31ca9e447d
35 changed files with 159 additions and 197 deletions

View file

@ -1,5 +1,5 @@
// types
import type { IInstance } from "@plane/types";
import type { IInstanceInfo } from "@plane/types";
// helpers
import { API_BASE_URL } from "@/helpers/common.helper";
// services
@ -18,7 +18,7 @@ export class InstanceService extends APIService {
});
}
async getInstanceInfo(): Promise<IInstance> {
async getInstanceInfo(): Promise<IInstanceInfo> {
return this.get("/api/instances/")
.then((response) => response.data)
.catch((error) => {