Skip to content

Commit

Permalink
fix: update breaking change
Browse files Browse the repository at this point in the history
  • Loading branch information
philipparndt committed May 18, 2024
1 parent 4023713 commit 962885a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
<scripts>
<script value="start" />
</scripts>
<arguments value="$PROJECT_DIR$/production/config/config.json" />
<node-interpreter value="project" />
<envs />
<method v="2" />
Expand Down
7 changes: 6 additions & 1 deletion app/lib/mqtt/mqtt-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,12 @@ const online = () => {
const willMessage = () => {
const config = getAppConfig()
if (config.mqtt["bridge-info"]) {
return { topic: brideTopic(), payload: "offline", qos: config.mqtt.qos, retain: config.mqtt.retain }
return {
topic: brideTopic(),
payload: Buffer.from("offline"),
qos: config.mqtt.qos,
retain: config.mqtt.retain
}
}
else {
return undefined
Expand Down
2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"test": "vitest",
"coverage": "vitest --coverage",
"start": "tsc && node dist/app/lib/index.js",
"start": "ncc build lib/index.ts -o dist && node dist/index.js ../production/config/config.json",
"clean": "rimraf dist",
"prebuild": "run-s clean",
"build": "ncc build lib/index.ts -o dist --minify",
Expand Down

0 comments on commit 962885a

Please sign in to comment.