Skip to content

Commit d1e098a

Browse files
authored
Merge pull request #99 from timdows/codex/fix-pipeline-job-check-issue
Fix lint spacing in JSON request payloads
2 parents 2856747 + 81e9371 commit d1e098a

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

MMM-JsonTable.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,10 @@ Module.register("MMM-JsonTable", {
3131

3232
// Request node_helper to get json from url
3333
getJson () {
34-
this.sendSocketNotification("MMM-JsonTable_GET_JSON", {url:this.config.url,id:this.identifier});
34+
this.sendSocketNotification("MMM-JsonTable_GET_JSON", {
35+
url: this.config.url,
36+
id: this.identifier
37+
});
3538
},
3639

3740
socketNotificationReceived (notification, payload) {

node_helper.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ module.exports = NodeHelper.create({
1414
.then((json) => {
1515
// Send the json data back with the url to distinguish it on the receiving part
1616
self.sendSocketNotification("MMM-JsonTable_JSON_RESULT", {
17-
id:payload.id,
17+
id: payload.id,
1818
data: json
1919
});
2020
});
2121
},
2222

2323
// Subclass socketNotificationReceived received.
24-
socketNotificationReceived (notification, payload ) {
24+
socketNotificationReceived (notification, payload) {
2525
if (notification === "MMM-JsonTable_GET_JSON") {
2626
this.getJson(payload);
2727
}

0 commit comments

Comments
 (0)