Skip to content

Commit

Permalink
[no-issue]: lesmis-server minor cleanups (#4165)
Browse files Browse the repository at this point in the history
  • Loading branch information
rohan-bes authored Sep 13, 2022
1 parent 50ea2af commit 7f526f6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import { QueryParameters, ApiConnection, RequestBody } from '@tupaia/server-boilerplate';

const { REPORT_API_URL = 'http://localhost:8030/v2' } = process.env;
const { REPORT_API_URL = 'http://localhost:8030/v1' } = process.env;

/**
* @deprecated use @tupaia/api-client
Expand Down
2 changes: 1 addition & 1 deletion packages/devops/scripts/deployment/startBackEnds.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ for PACKAGE in ${PACKAGES[@]}; do
echo "Starting ${PACKAGE}"
cd ${TUPAIA_DIR}/packages/$PACKAGE
REPLICATION_PM2_CONFIG=''
if [ $PACKAGE == "web-config-server" ] || [ $PACKAGE == "report-server" ] || [ $PACKAGE == "lesmis-server" ] ; then
if [ $PACKAGE == "web-config-server" ] || [ $PACKAGE == "report-server" ] ; then
# as many replicas as cpu cores - 1
REPLICATION_PM2_CONFIG='-i -1'
fi
Expand Down
2 changes: 1 addition & 1 deletion packages/lesmis-server/src/connections/ReportConnection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import { QueryParameters } from '@tupaia/server-boilerplate';
import { SessionHandlingApiConnection } from './SessionHandlingApiConnection';

const { REPORT_API_URL = 'http://localhost:8030/v2' } = process.env;
const { REPORT_API_URL = 'http://localhost:8030/v1' } = process.env;

type ReportObject = {
results: Record<string, unknown>[];
Expand Down

0 comments on commit 7f526f6

Please sign in to comment.