Skip to content

Commit

Permalink
fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
tuhuynh99 committed Nov 30, 2022
1 parent 8bbe98f commit 2dbfe50
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion fe/src/api/medinfoApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Operator } from '../models/Operator';
import { stringify } from 'querystring';

// const BASE_API = process.env.REACT_APP_BASE_API || 'http://localhost:8080';
const BASE_API = 'http://localhost:8080';
const BASE_API = 'http://128.199.203.189:8080';

// const apiUrl = `${BASE_API}/api/`;
const apiUrl = `${BASE_API}/medinfo`;
Expand Down
4 changes: 2 additions & 2 deletions sona/apiserver/endpoints/medicalinfo_endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export async function queryByKeywords(req, res){
export async function addCase(req, res){
try {
const wallet = await utils.getWallet(userID);
const gateway = await utils.getGateway(wallet,ccp1, userID);
const gateway = await utils.getGateway(wallet,userID, ccp1);
const network = await utils.getNetwork(gateway, wallet, userID);
// Get the contract from the network.
const medInfoContract = network.getContract(
Expand Down Expand Up @@ -159,7 +159,7 @@ export async function addCase(req, res){
export async function appendCase(req, res){
try {
const wallet = await utils.getWallet(userID);
const gateway = await utils.getGateway(wallet,ccp1, userID);
const gateway = await utils.getGateway(wallet,userID, ccp1);
const network = await utils.getNetwork(gateway, wallet, userID);
// Get the contract from the network.
const medInfoContract = network.getContract(
Expand Down

0 comments on commit 2dbfe50

Please sign in to comment.