Skip to content
Snippets Groups Projects
Commit 45a6b0f7 authored by lmtd21's avatar lmtd21
Browse files

Issue #31: FIX learning-object thumbnail

parent 562a5ea9
No related branches found
No related tags found
1 merge request!30Issue #31: FIX learning-object thumbnail
Pipeline #32224 failed
......@@ -95,11 +95,16 @@ class V1::LearningObjectsController < ApplicationController
publisher = LearningObjectPublisher.new(DspaceService.create_client)
publisher.update_dspace(@learning_object)
render json: @learning_object, status: :ok
else
if lo_params[:thumbnail] != "null"
@learning_object.thumbnail = params[:thumbnail]
render json: @learning_object, status: :ok
else
render json: @learning_object.errors, status: :unprocessable_entity
end
end
end
# DELETE /learning_objects/1
# DELETE /learning_objects/1.json
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment