mirror of
https://github.com/spacedeck/spacedeck-open.git
synced 2025-12-16 01:47:30 +01:00
space: fix realtime artifact media conversion feedback for video, audio
This commit is contained in:
@@ -17,9 +17,15 @@ module.exports = (req, res, next) => {
|
||||
this.status(201).json(object);
|
||||
};
|
||||
|
||||
res['distributeUpdate'] = function(model, object) {
|
||||
res['distributeUpdate'] = function(model, object, sendToSelf) {
|
||||
if (!object) return;
|
||||
redis.sendMessage("update", model, object, req.channelId);
|
||||
if (sendToSelf) {
|
||||
// send this update to the initiating user, for example when
|
||||
// a conversion task has finished
|
||||
redis.sendMessage("update-self", model, object, req.channelId);
|
||||
} else {
|
||||
redis.sendMessage("update", model, object, req.channelId);
|
||||
}
|
||||
this.status(200).json(object);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user