forked from cerc-io/snowballtools-base
List latest commits from project repo in overview tab (#55)
This commit is contained in:
@@ -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> {
|
||||
|
||||
@@ -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`
|
||||
|
||||
Reference in New Issue
Block a user