Skip to content

Commit

Permalink
DEV-164: Added sails call to init version updates
Browse files Browse the repository at this point in the history
Fixes bug introduced in PR 166 (ArekSredzki#166). The issue is that `/versions/sorted` (changed at line 537 of `data-service.js`) is not a proper blueprint api call and doesn’t initiate web sockets properly to monitor for updates to the version records.
  • Loading branch information
Dustin Brett committed Sep 26, 2019
1 parent eccfd4b commit 61d474a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion assets/js/core/data/data-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,10 @@ angular.module('app.core.data.service', [
$sails.get('/api/channel'),

// Only sent to watch for asset updates
$sails.get('/api/asset')
$sails.get('/api/asset'),

// Only sent to watch for version updates
$sails.get('/api/version')
])
.then(function(responses) {
versions = responses[0];
Expand Down

0 comments on commit 61d474a

Please sign in to comment.