Skip to content

Commit

Permalink
[BI-677] send PUT traits to backend
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris T committed Feb 9, 2021
1 parent 72d4aff commit c5a4cb5
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/breeding-insight/dao/TraitDAO.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,11 @@ export class TraitDAO {
}

static async updateTraits(programId: string, newTraits: Trait[]): Promise<BiResponse> {
/*const { data } = await api.call({
const { data } = await api.call({
url: `${process.env.VUE_APP_BI_API_V1_PATH}/programs/${programId}/traits`,
method: 'put',
data: newTraits
}) as Response;*/
let mockData = {result: {data: newTraits}, metadata: {}};
return new BiResponse(mockData);
}) as Response;
return new BiResponse(data);
}
}

0 comments on commit c5a4cb5

Please sign in to comment.