Skip to content

Commit

Permalink
update publishMessage to queue essages
Browse files Browse the repository at this point in the history
  • Loading branch information
pattishin committed Apr 5, 2024
1 parent 9cc4780 commit 4a57bc5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion other/train-to-cloud-city/devices/rfid/trainGame.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

const { StringDecoder } = require("node:string_decoder");
const {
publishMessage,
getTrain,
getTrainMailbox,
getSessionMailbox,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,11 +205,10 @@ async function submitActualCargo(chunks) {
const ref = db.collection("global").doc("cargo");
try {
await ref.update({ actual_cargo: cargos }, { merge: true });
/*await publishMessage("cargo-read", {
queueMessageToPublish("cargo-read", {
actualCargo: cargos,
timestamp: Date.now(),
});*/

});
console.log(`Cargos read ${JSON.stringify(cargos)}`);
} catch (error) {
console.error(error);
Expand Down

0 comments on commit 4a57bc5

Please sign in to comment.