Skip to content

Commit

Permalink
Also save embedKey and code when reprocessing
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaasmatthijs committed Aug 22, 2015
1 parent a2cebaa commit dd27916
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/reprocess_previews.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,11 @@ var reprocessAssetPreview = function(asset, callback) {
var embdr = new Embdr(config.get('embdr.apiKey'));
embdr.process(assetUrl, {
'start': function(preview) {
AssetsAPI.updateAssetPreview(asset, {'embedCode': preview.embedCode});
AssetsAPI.updateAssetPreview(asset, {
'embedId': preview.id,
'embedKey': preview.embedKey,
'embedCode': preview.embedCode
});
},
'thumbnails': {
'sizes': [CollabosphereConstants.THUMBNAIL_SIZE],
Expand Down

0 comments on commit dd27916

Please sign in to comment.