Skip to content

Commit f75e599

Browse files
author
BWBW223
authored
fix bridge
1 parent 28fdf5c commit f75e599

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,21 @@ var createBridges = function(start, end, user) {
2020
secondcloud.set('☁ ' + secondName, value);
2121
var today = new Date();
2222
var UTCstring = today.toUTCString();
23+
console.log("At " + UTCstring + " " + firstProjectId + " sent " + secondProjectId + " the value " + val);
2324
console.log("At " + UTCstring + " " + firstProjectId + " sent " + secondProjectId + " the value " + val + "\n");
2425
}
2526
});
2627
secondcloud.on('set', function(name, value) {
2728
if (name === '☁ ' + secondName) {
2829
val = value.toString();
30+
firstcloud.set('☁ ' + firstName, value);
31+
var today = new Date();
32+
var UTCstring = today.toUTCString();
33+
console.log("At " + UTCstring + " " + firstProjectId + " sent " + secondProjectId + " the value " + val);
2934
firstcloud.set('☁ ' + secondName, value);
3035
var today = new Date();
3136
var UTCstring = today.toUTCString();
32-
console.log("At " + UTCstring + " " + firstProjectId + " sent " + secondProjectId + " the value " + val + "\n");
37+
console.log("At " + UTCstring + " " + firstProjectId + " sent " + secondProjectId + " the value " + val);
3338
}
3439
});
3540
});

0 commit comments

Comments
 (0)