List latest commits from project repo in overview tab (#55)

This commit is contained in:
2024-02-05 17:57:08 +05:30
committed by GitHub
parent 1c9597739b
commit 7e522aa45d
6 changed files with 87 additions and 24 deletions
+4 -4
View File
@@ -194,15 +194,15 @@ export class GQLClient {
return data;
}
async addProject (projectDetails: AddProjectInput): Promise<AddProjectResponse> {
const { data } = await this.client.mutate({
async addProject (data: AddProjectInput): Promise<AddProjectResponse> {
const result = await this.client.mutate({
mutation: addProject,
variables: {
projectDetails
data
}
});
return data;
return result.data;
}
async updateProject (projectId: string, projectDetails: UpdateProjectInput): Promise<UpdateProjectResponse> {
+2 -2
View File
@@ -43,8 +43,8 @@ mutation ($deploymentId: String!) {
`;
export const addProject = gql`
mutation ($projectDetails: AddProjectInput) {
addProject(projectDetails: $projectDetails)
mutation ($data: AddProjectInput) {
addProject(data: $data)
}`;
export const updateProjectMutation = gql`