mirror of
https://github.com/spacedeck/spacedeck-open.git
synced 2025-12-15 17:37:30 +01:00
fix session token/cookie handling for arbitrary server IPs; fix realtime update distribution via websockets
This commit is contained in:
@@ -133,7 +133,7 @@ router.post('/:artifact_id/payload', function(req, res, next) {
|
||||
var progress_callback = function(progress_msg) {
|
||||
a.description = progress_msg;
|
||||
a.save();
|
||||
redis.sendMessage("update", a, a.toJSON(), req.channelId);
|
||||
redis.sendMessage("update", a, JSON.stringify(a), req.channelId);
|
||||
};
|
||||
|
||||
stream.on('finish', function() {
|
||||
@@ -171,6 +171,7 @@ router.put('/:artifact_id', function(req, res, next) {
|
||||
}}).then(rows => {
|
||||
db.unpackArtifact(newAttr);
|
||||
db.Space.update({ updated_at: new Date() }, {where: {_id: req.space._id} });
|
||||
newAttr._id = a._id;
|
||||
res.distributeUpdate("Artifact", newAttr);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user