Skip to content

Commit

Permalink
feat: fix operation query issue (#328)
Browse files Browse the repository at this point in the history
Because

- The way frontend query operation endpoint is wrong

This commit

- Fix how console query operation endpoint
  • Loading branch information
EiffelFly committed Jan 14, 2023
1 parent fabb36a commit 54d7aef
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ NEXT_PUBLIC_API_VERSION=v1alpha
NEXT_PUBLIC_INSTILL_AI_USER_COOKIE_NAME=instill-ai-user
NEXT_PUBLIC_CONSOLE_EDITION=local:ce-dev
NEXT_PUBLIC_DISABLE_USAGE_COLLECTION=false
NEXT_PUBLIC_API_GATEWAY_BASE_URL=https://localhost:8080
NEXT_PUBLIC_API_GATEWAY_BASE_URL=http://localhost:8080
NEXT_PUBLIC_SELF_SIGNED_CERTIFICATION=true
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ We maintain another container `Dockerfile.playwright` specifically for test usag
### How to test at local

- In VDP folder: `git pull --rebase` to pull the up-to-date code.
- In VDP folder: `make build PROFILE=console`
- In VDP folder: `make build PROFILE=all`
- In console folder: `pnpm dev` to setup local dev server
- If you want to test in your host (Run the app with pnpm dev in the console folder)
- In VDP folder: `make dev PROFILE=console ITMODE=true CONSOLE_BASE_URL_HOST=localhost CONSOLE_BASE_API_GATEWAY_URL_HOST=localhost`
Expand Down
2 changes: 1 addition & 1 deletion src/lib/instill/model/queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ export const getModelOperationQuery = async (
const client = createInstillAxiosClient();

const { data } = await client.get<GetModelOperationResponse>(
`${process.env.NEXT_PUBLIC_MODEL_BACKEND_BASE_URL}/${process.env.NEXT_PUBLIC_API_VERSION}/${operationName}`
`${process.env.NEXT_PUBLIC_API_VERSION}/${operationName}`
);
return Promise.resolve(data.operation);
} catch (err) {
Expand Down

0 comments on commit 54d7aef

Please sign in to comment.