Skip to content

Commit

Permalink
Fix Bircom route never returning a 200 status
Browse files Browse the repository at this point in the history
And minor tweaks
  • Loading branch information
vicb committed Sep 4, 2024
1 parent 2bd5c33 commit eb72076
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion apps/fxc-server/src/app/routes/meshbir.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export function getMeshBirRouter(redis: Redis): Router {
const pipeline = redis.pipeline();
pushListCap(pipeline, Keys.meshBirMsgQueue, [JSON.stringify(message)], MESHBIR_MAX_MSG, MESHBIR_MAX_MSG_SIZE);
await pipeline.exec();
return res.status(200);
return res.sendStatus(200);
} catch (e) {
console.error(e);
return res.sendStatus(500);
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"version": "2.2.0",
"license": "MIT",
"scripts": {
"dev": "nx run-many --target=serve --projects=fxc-front,fxc-server,airspaces --configuration=development",
"check": "npm run fixlint && nx format && nx run-many --targets=test,lint,build --parallel 8",
"fixlint": "nx run-many -t lint --fix --parallel 8"
"dev": "nx build secrets && nx run-many --target=serve --projects=fxc-front,fxc-server,airspaces --configuration=development",
"check": "npm run fixlint && nx format && nx run-many --targets=test,lint,build --parallel 6",
"fixlint": "nx run-many -t lint --fix --parallel 6"
},
"nx": {
"includedScripts": [
Expand Down

0 comments on commit eb72076

Please sign in to comment.