Skip to content

Commit

Permalink
feature:FUR-13 [BE][Web] Update develop.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
MinhhTien committed May 21, 2024
1 parent 7ef863b commit 9cf9ef3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ jobs:
echo DISCORD_WEBHOOK_ID=${{ secrets.DISCORD_WEBHOOK_ID }} >> .env
echo DISCORD_WEBHOOK_TOKEN=${{ secrets.DISCORD_WEBHOOK_TOKEN }} >> .env
echo TRIPO_3D_AI_ENDPOINT=${{ secrets.TRIPO_3D_AI_ENDPOINT }} >> .env
echo TRIPO_3D_AI_API_KEY=${{ vars.TRIPO_3D_AI_API_KEY }} >> .env
echo TRIPO_3D_AI_ENDPOINT=${{ vars.TRIPO_3D_AI_ENDPOINT }} >> .env
echo TRIPO_3D_AI_API_KEY=${{ secrets.TRIPO_3D_AI_API_KEY }} >> .env
- name: Deploy
run: pm2 restart furnique-api
Expand Down
4 changes: 2 additions & 2 deletions src/ai-generation/services/text-to-model.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export class AIGenerationTextToModelService {
})
.pipe(
catchError((error: AxiosError) => {
this.logger.error(error.response.data)
this.logger.error(error?.response?.data)
throw new AppException({ ...Errors.TRIPO_3D_AI_ERROR, data: error?.response?.data })
})
)
Expand All @@ -58,7 +58,7 @@ export class AIGenerationTextToModelService {
const { data } = await firstValueFrom(
this.httpService.get(`${this.config.endpoint}/v2/openapi/task/${taskId}`, { headers: this.headersRequest }).pipe(
catchError((error: AxiosError) => {
this.logger.error(error.response.data)
this.logger.error(error?.response?.data)
throw new AppException({ ...Errors.TRIPO_3D_AI_ERROR, data: error?.response?.data })
})
)
Expand Down

0 comments on commit 9cf9ef3

Please sign in to comment.