Skip to content

Commit

Permalink
Fixed opus ID retrieval
Browse files Browse the repository at this point in the history
  • Loading branch information
jack-brinkman committed Dec 12, 2023
1 parent e1e1051 commit 98d9a49
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,11 @@ profileEditor.directive('imageUpload', function ($browser, $http, config) {
}

$scope.save = function() {
console.log("Scope save", $scope, $scope.opusId)
if ($scope.image) {
$scope.metadata.created = util.formatLocalDate($scope.metadata.created);
$cacheFactory.get('$http').removeAll();

profileService.saveImageMetadata($scope.opusId, $scope.image.imageId, $scope.metadata).then(function(data) {
profileService.saveImageMetadata(util.getEntityId("opus"), $scope.image.imageId, $scope.metadata).then(function(data) {
if (angular.isDefined($scope.callbackHandler)) {
$scope.callbackHandler(data);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,6 @@ profileEditor.service('profileService', function ($http, util, $cacheFactory, co
},

saveImageMetadata: function(opusId, imageId, data) {
console.log('saveImageMetadata', opusId, data);
$log.debug("Saving image metadata: " + imageId);
var future = null;
if (opusId && imageId) {
Expand Down

0 comments on commit 98d9a49

Please sign in to comment.