From c5a4cb54750330da8123dfec9828441b36a6c32b Mon Sep 17 00:00:00 2001 From: Chris T Date: Tue, 2 Feb 2021 12:00:28 -0500 Subject: [PATCH] [BI-677] send PUT traits to backend --- src/breeding-insight/dao/TraitDAO.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/breeding-insight/dao/TraitDAO.ts b/src/breeding-insight/dao/TraitDAO.ts index 1758cc2f8..008fde285 100644 --- a/src/breeding-insight/dao/TraitDAO.ts +++ b/src/breeding-insight/dao/TraitDAO.ts @@ -48,12 +48,11 @@ export class TraitDAO { } static async updateTraits(programId: string, newTraits: Trait[]): Promise { - /*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); } }