Skip to content

Commit

Permalink
Merge pull request #3 from DISIC/dev
Browse files Browse the repository at this point in the history
fix: replace jmmc_client.js static path with dynamic path
  • Loading branch information
HamzaKhait authored Mar 26, 2024
2 parents 98c304e + bd6cc15 commit 76de57f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
node-version: 20
- run: npm ci --force
- run: npm run build
- run: tar -czvf jmmc.tar.gz dist package.json package-lock.json
- run: tar -czvf jmmc.tar.gz dist public package.json package-lock.json
- run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion src/metrics-collector/metrics-collector.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export class MetricsCollectorService {

sendFile(res: Response) {
fs.readFile(
path.join(__dirname, '../../public/jmmc_client.js'),
path.join(process.cwd(), '/public/jmmc_client.js'),
'utf8',
(err, jmmc_client_content) => {
if (err) {
Expand Down

0 comments on commit 76de57f

Please sign in to comment.